• 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: addObserver/removeObserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: addObserver/removeObserver


  • Subject: Re: addObserver/removeObserver
  • From: Dan Saul <email@hidden>
  • Date: Thu, 13 Jan 2005 20:19:42 -0600

If you don't know the amount of items you are observing, why don't you
just call [nc removeObserver:id] which basically removes all
observations.



On Thu, 13 Jan 2005 15:44:03 -0800, Robert Penland <email@hidden> wrote:
> I did a little searching on this and didn't come up with a satisfactory
> answer, so I thought that I would pose the question here.  If you have
> done an addObserver to an NSNotificationCenter with an object is it OK
> to call removeObserver twice with that same object.  The function
> doesn't return an error code so is it basically a nop if the object is
> not in the NSNotificationCenter's table?
>
> Thanks,
> Rob
>
>  _______________________________________________
> 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
>
 _______________________________________________
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: 
 >addObserver/removeObserver (From: Robert Penland <email@hidden>)

  • Prev by Date: Re: Bindings Book !!!!!Stepping back from this, lest it appear that I'm just throwing this back in your face (which is *not* my intent), it seems to me that much of what you're asking for is covered. What I would like to understand is in what ways it fails to deliver on what it promises -- why are you not finding it solving your problems. That way we might have a better chance of improving the situation.Re: Bindings Book !!!!!Re: Bindings Book !!!!!
  • Next by Date: Re: Adding an undo method in textView:shouldChangeTextInRange:...
  • Previous by thread: addObserver/removeObserver
  • Next by thread: Reveal in Finder Sample Code
  • Index(es):
    • Date
    • Thread