nsnotificationcenter

Monitoring Apples "System Events" with Cocoa

Hey all, I was wondering if there was a way to write a Cocoa app that listened for OS system events such as an application launching, a window switches, etc, etc. My thought was to watch [NSNotficationCenter default] for messages but so far I haven't been able to find much. Does anyone have any suggestions? Thanks! ...

Strange NSNotificationCenter crash

Hey Guys, I've another problem. This time with NSNotificationCenter. Now it crashes, but a few days ago, when I added the Notification, it worked properly. In the time between I added some code that has nothing to do with that... I have about 10x10 tiles. Each tile adds itself as an observer as soon as it is created: [[NSNotificationC...

How to receive ALAssetsLibraryChangedNotification in iOS 4 while in background

I would like to register my iOS 4 app as an observer for ALAssetsLibraryChangedNotification and receive notifications when changes happen to the camera roll and photo library. The most obvious scenario is: 1) My app enumerates photo contents using ALAssetsLibrary. 2) Leave my app (goes into background) and launch the camera app. 3) Take ...