Re: addObserver/removeObserver
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