Here's how you can do it:
1) add the + initialize method to your application delegate
+ (void)initialize {
2) Register the application for notification
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { [[NSDistributedNotificationCenter defaultCenter] addObserver:self selector:@selector(updateInterface:) name:@"updateInterface" object:nil]; }
3) Add updateInterface method
- (void)updateInterface:(NSNotification *)aNotification {
source share