• 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: NSTreeController woes... NSZombie at doc closed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTreeController woes... NSZombie at doc closed
      • From: Ken Victor <email@hidden>
References: 
 >NSTreeController woes... NSZombie at doc closed (From: Ken Victor <email@hidden>)

  • Prev by Date: Re: Class won't allocate
  • Next by Date: Position a window in center & under the menubar.
  • Previous by thread: NSTreeController woes... NSZombie at doc closed
  • Next by thread: Re: NSTreeController woes... NSZombie at doc closed
  • Index(es):
    • Date
    • Thread