NSNotification called twice
NSNotification called twice
- Subject: NSNotification called twice
- From: Jonathan Nathan <email@hidden>
- Date: Wed, 07 Jul 2004 21:31:54 -0400
I've searched the archives and there was some mention of this before but no
solution that I found. Using the code below, when the Address Book.app
changes, the NSNotification gets called twice. Is there a way to limit this
to just get called once?
Thanks,
Jon
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(ABChanged:)
name:kABDatabaseChangedExternallyNotification
object:nil];
- (void)ABChanged:(NSNotification *)notification {
NSLog(@"ABChanged");
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.