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

_NSKeyValueObservationInfoCreateByRemoving crashing


  • Subject: _NSKeyValueObservationInfoCreateByRemoving crashing
  • From: Stefan Fisk <email@hidden>
  • Date: Tue, 1 Nov 2005 17:50:23 +0100

Dear all,

Has anyone gotten anywhere with the _NSKeyValueObservationInfoCreateByRemoving crashing bug? It's currently driving me completely mad.
I've got an array of objects with two keys that are bound to a table view, "engine.displayName" and "properties".


When i use normal value accessor methods that return a copy of the objects, the application crashes as soon as there's an object added to the array. But if i instead return the original object, everything works just fine, EVEN if a change the instance variable to a copy of the object and return the original. The engine class's displayName method is just a wrapper for a NSBundle method, so I assume that it returns autoreleased objects like it should.

So basically:

Works for now, but is stopping me from adding planned features.
- (Engine *)engine {
    return [[engine retain] autorelease];
}

Also works for now, but is stopping me from adding planned features.
- (Engine *)engine {
    id old = [engine autorelease];
    engine = [engine copy];
    return old;
}

Crashes instantly, but it's the right thing to do.
- (Engine *)engine {
    return  [[engine copy] autorelease];
}


_______________________________________________ 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: mmalcolm crawford <email@hidden>
    • Re: _NSKeyValueObservationInfoCreateByRemoving crashing
      • From: Nicko van Someren <email@hidden>
  • Prev by Date: Small version of pulldown NSPopUpButton?
  • Next by Date: Re: private frameworks
  • Previous by thread: Small version of pulldown NSPopUpButton?
  • Next by thread: Re: _NSKeyValueObservationInfoCreateByRemoving crashing
  • Index(es):
    • Date
    • Thread