How can I determine if a user has pressed on a UITableViewCell for 2 seconds?

How can I determine if a user has pressed on a UITableViewCell for 2 seconds?

I am using gesture recognizers:
Initialize in viewDidLoad:
UILongPressGestureRecognizer *longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)];
 [self.view addGestureRecognizer:longPressRecognizer];

This is what 
Read more

How to change color of status bar item title in objective-C/Cocoa?

How to change color of status bar item title in objective-C/Cocoa?

//Create the NSStatusBar and set its length
statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength] retain];

[statusItem setHighlightMode:YES];
[statusItem setTitle:@"myTitle"];
[statusItem setToolTip:@"myToolTip"];
[statusItem setMenu:statusMenu];
[statusItem setEnabled:YES];

How 
Read more