• 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: Tue, 1 Nov 2005 10:20:26 -0800


On Nov 1, 2005, at 9:26 AM, Stefan Fisk wrote:

The Engine class only has one instance variable that identifies it, so the copyWithZone: just calls initWithPath:.

I'd *guess* that by returning a copy in the accessor you're subverting KVO and bindings in general, since the object being observed isn't the same as the property of the original (and it's continually changing with each access).


It's not clear why you would return a copy of an Engine -- from the name it sounds like something that would be a relationship rather than an attribute...?

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


  • Follow-Ups:
    • Re: _NSKeyValueObservationInfoCreateByRemoving crashing
      • From: Stefan Fisk <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>)

  • Prev by Date: Re: Objective C++ memory management
  • Next by Date: Re: Implementing a queue between an application and a thread. Deeply confused...
  • Previous by thread: Re: _NSKeyValueObservationInfoCreateByRemoving crashing
  • Next by thread: Re: _NSKeyValueObservationInfoCreateByRemoving crashing
  • Index(es):
    • Date
    • Thread