• 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: _NSKeyValueObservationInfoCreateByRemoving crashing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: _NSKeyValueObservationInfoCreateByRemoving crashing


  • Subject: Re: _NSKeyValueObservationInfoCreateByRemoving crashing
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 2 Nov 2005 11:05:41 -0800


On Nov 1, 2005, at 11:41 AM, Stefan Fisk wrote:

I do see your point, but I'm not quite sure why i shouldn't be able to return a copy. But I am experiencing the exact same problem with the result class's other key - 'properties' - which internally is a mutable dictionary. From what i understand KVO should do the hard work for you, so that if any object in the observed key path changes you get notified properly anyway. If that is not the case i can understand fully why my code crashes.

If you return a copy each time, you're in effect changing the value in the key-path without emitting a KVO change notification...


mmalc

_______________________________________________
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: 
 >_NSKeyValueObservationInfoCreateByRemoving crashing (From: Stefan Fisk <email@hidden>)
 >Re: _NSKeyValueObservationInfoCreateByRemoving crashing (From: Nicko van Someren <email@hidden>)
 >Re: _NSKeyValueObservationInfoCreateByRemoving crashing (From: Stefan Fisk <email@hidden>)
 >Re: _NSKeyValueObservationInfoCreateByRemoving crashing (From: mmalcolm crawford <email@hidden>)
 >Re: _NSKeyValueObservationInfoCreateByRemoving crashing (From: Stefan Fisk <email@hidden>)

  • Prev by Date: Dependent keys - non-cascading?
  • Next by Date: fileExistsAtPath:isDirectory - BROKEN?
  • Previous by thread: Re: _NSKeyValueObservationInfoCreateByRemoving crashing
  • Next by thread: Re: _NSKeyValueObservationInfoCreateByRemoving crashing
  • Index(es):
    • Date
    • Thread