• 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: NSNotificationCenter : multiple messages sent to the same observer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationCenter : multiple messages sent to the same observer?


  • Subject: Re: NSNotificationCenter : multiple messages sent to the same observer?
  • From: Frédéric Testuz <email@hidden>
  • Date: Sun, 22 Feb 2009 10:52:36 +0100

Le 22 févr. 09 à 00:06, Iceberg-Dev a écrit :

I just discovered something recently. If you register an observer with the same name/object/selector twice, you get the notification twice when you post it.

Isn't the NSNotificationCenter supposed to prevent this?

Notifications post via a NSNotificationQueue can have this behaviour. The documentation said nothing about coalescing notifications sent directly to a NSNotificationCenter.


Frédéric_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSNotificationCenter : multiple messages sent to the same observer?
      • From: Frédéric Testuz <email@hidden>
References: 
 >NSNotificationCenter : multiple messages sent to the same observer? (From: Iceberg-Dev <email@hidden>)

  • Prev by Date: Re: Name to PSN
  • Next by Date: Re: NSNotificationCenter : multiple messages sent to the same observer?
  • Previous by thread: Re: NSNotificationCenter : multiple messages sent tothe same observer?
  • Next by thread: Re: NSNotificationCenter : multiple messages sent to the same observer?
  • Index(es):
    • Date
    • Thread