• 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: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 14:31:20 -0400
  • Organization: Rogue Research Inc.

On Tue, 10 Mar 2015 18:25:23 +0000, Quincey Morris said:

>If something else is using a conflicting ‘removeObserver:forKeyPath:’,
>it might sorta work if all observers use it (because the total number of
>removals is equal to the number of observations, even if they remove
>each others’ observations), but fail if some try use
>‘removeObserver:forKeyPath:context:’ on an observation that’s already
>been removed.

It must be something like that.  I've gutted my app down to test case size and it still reproduces. :(  If you're curious I can put it online.

>Also, a long time ago (Leopard-ish), there was a horrible bug where
>observations of (from?) the same thing could get mixed up so that
>attempting to remove one would actually remove the other. I doubt this
>was ever fixed — it was subtle.

The Foundation Release Notes speak of similar things being fixed... but maybe there is another bug...

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


  • Follow-Ups:
    • Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
      • From: Jonathan Mitchell <email@hidden>
    • Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
      • From: Quincey Morris <email@hidden>
References: 
 >removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?! (From: Sean McBride <email@hidden>)
 >Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?! (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSRunningApplication executableURL issue in Swift
  • Next by Date: Re: Delete propagation to parent context
  • Previous by thread: Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
  • Next by thread: Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
  • Index(es):
    • Date
    • Thread