Created
April 8, 2010 23:56
-
-
Save atomicbird/360696 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { | |
opQ = [[NSOperationQueue alloc] init]; | |
[[NSNotificationCenter defaultCenter] addObserverForName:@"CustomOperationCompleted" | |
object:nil queue:opQ | |
usingBlock:^(NSNotification *notif) { | |
NSNumber *theNum = [notif.userInfo objectForKey:@"NumberOfItemsProcessed"]; | |
NSLog(@"Number of items processed: %i", [theNum intValue]); | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment