• 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: Notifications not filtering on object ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notifications not filtering on object ?


  • Subject: Re: Notifications not filtering on object ?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 19 Jan 2005 15:55:28 +0100

At 9:18 Uhr -0500 19.01.2005, Robert Clair wrote:
I've had a number of obscure bugs which seem to be caused by the
notification system not filtering on the object as requested.
Simplified example:

NSSomeClass*  desiredInstanceOfClass;
NSSomeClass*  differentInstance;
--------------------------------------------------------

 [ [NSNotificationCenter defaultCenter]
          addObserver: self
          selector: @selector(myNotificationHandler:)
          name:  NSSomeNotification
          object: desiredInstanceOfClass ];

Is desiredInstanceOfClass NIL, perhaps? That will register a notification for all objects.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Notifications not filtering on object ? (From: Robert Clair <email@hidden>)

  • Prev by Date: Why do "loose" nibs take precedence over nibs in .lproj?
  • Next by Date: Re: Why do "loose" nibs take precedence over nibs in .lproj?
  • Previous by thread: Notifications not filtering on object ?
  • Next by thread: Why do "loose" nibs take precedence over nibs in .lproj?
  • Index(es):
    • Date
    • Thread