• 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: Document object is not being released
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document object is not being released


  • Subject: Re: Document object is not being released
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 8 Feb 2007 15:51:57 +0000

bear in mind that bindings retain - have you bound something to the document?

Mike.

On 8 Feb 2007, at 13:07, Ari Benzane wrote:

Hi. I've been hunting for memory leaks in my large, document-based app and I've found that my model object (NSDocument subclass) is not being released, either when the main window is closed or the app quits. I've got an NSLog() in the dealloc method and it's not being called.

My app has several properties palettes with their own window- controllers and delagates for managing tables etc, in addition to bindings. But no-where is my code explicitly retain-ing references or outlets to my document class.

I know the details are vague, but can anyone suggest what the problem might be? I've tried setting the 'release when closed' option on the window in IB but it made no difference.


---------------------------------
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. Do it now...
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
40mikeabdullah.net


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Document object is not being released (From: Ari Benzane <email@hidden>)

  • Prev by Date: Re: What happens when an application becomes active
  • Next by Date: Re: Document object is not being released
  • Previous by thread: Document object is not being released
  • Next by thread: Re: Document object is not being released
  • Index(es):
    • Date
    • Thread