Re: NSTreeController woes... NSZombie at doc closed
Re: NSTreeController woes... NSZombie at doc closed
- Subject: Re: NSTreeController woes... NSZombie at doc closed
- From: Andrew Farmer <email@hidden>
- Date: Mon, 12 Jun 2006 08:25:15 -0700
On 11 Jun 06, at 19:20, Ken Victor wrote:
one of the windows of my core data document app contains an
NSOutlineView bound with a NSTreeController. the basics work fine.
however, if i expand a row and then close the document, i get the
following stack trace:
#0 0x929ffbf8 in -[_NSZombie methodSignatureForSelector:]
<...>
and the following on the console log:
2006-06-11 18:50:03.677 Accounts[12130] *** Selector 'leafKeyPath'
sent to dealloced instance 0x1301670 of class NSTreeController.
Break at '-[_NSZombie methodSignatureForSelector:]' to debug.
2006-06-11 18:50:04.809 Accounts[12130] *** -[NSAutoreleasePool
dealloc]: Exception ignored while releasing an object in an
autorelease pool: *** Selector 'leafKeyPath' sent to dealloced
instance 0x1301670 of class NSTreeController.
Break at '-[_NSZombie methodSignatureForSelector:]' to debug.
note that everything close fine if i don't expand any rows while
this window is open.
You're probably doing something wrong with memory management
somewhere in your code; the NSTreeController is getting released too
early.
also, by adding the following line of code to my
NSWindowController's subclass dealloc method, the problems also go
away...
Mind showing us your dealloc method? It's possible that you're doing
things in the wrong order.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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