Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@atomicbird
Created April 8, 2010 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomicbird/360696 to your computer and use it in GitHub Desktop.
Save atomicbird/360696 to your computer and use it in GitHub Desktop.
- (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