• 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
Re: NSNotification called twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotification called twice


  • Subject: Re: NSNotification called twice
  • From: Jonathan Nathan <email@hidden>
  • Date: Thu, 08 Jul 2004 13:32:49 -0400

on 7/8/04 1:00 PM, Mario Diana at email@hidden wrote:

> On Wednesday, July 7, 2004, at 09:31 PM, Jonathan Nathan wrote:
>
>> 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?
>
> The framework sends so many notifications while its running, most of
> which are ignored by any one application, that I don't really think
> this is something to worry about. I know that sounds like heresy, but
> for what it's worth that's my understanding.
>
> Mario

Thanks for the reply but it's not random nor overloading the
NSNotificationCenter with lots of notifications, it's very predictably
sending two notifications each time the Address Book.app changes and only
then. My code was just to demonstrate that it was being called, my actual
code does more when the AB database is changed so this is important. If I
can determine that it will always send two notifications, then fine, I can
code to ignore the second one every time but I need to know if this is going
to be the case on every machine or if it is just something I am seeing on my
development machine or something endemic to my code that I just don't
understand.

Thanks,
Jon
_______________________________________________
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.


References: 
 >Re: NSNotification called twice (From: Mario Diana <email@hidden>)

  • Prev by Date: Re: NSNotification called twice
  • Next by Date: NSOutlineView and horizontal scroll bar problem
  • Previous by thread: Re: NSNotification called twice
  • Next by thread: Re: NSNotification called twice
  • Index(es):
    • Date
    • Thread