Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
- Subject: Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
- From: Sean McBride <email@hidden>
- Date: Wed, 11 Mar 2015 17:15:16 -0400
- Organization: Rogue Research Inc.
On Wed, 11 Mar 2015 21:06:46 +0000, Jonathan Mitchell said:
>I recently refactored my app to use removeObserver:forKeyPath:context:
>rather than removeObserver:forKeyPath and it went without a hitch.
We did the same refactor a couple of years ago, and it went great also. We missed just one or two, and as per Murphy's Law one is being problematic. :)
>are you using for your context pointers? Mine are always non nil
>pointers to a static char.
Likewise.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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