• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSNotification called twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: NSNotification called twice
      • From: Mario Diana <email@hidden>
  • Prev by Date: Table view question
  • Next by Date: Mail.app Plug-In?
  • Previous by thread: Re: Table view question
  • Next by thread: Re: NSNotification called twice
  • Index(es):
    • Date
    • Thread