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

Document object is not being released


  • Subject: Document object is not being released
  • From: Ari Benzane <email@hidden>
  • Date: Thu, 8 Feb 2007 13:07:46 +0000 (GMT)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Document object is not being released
      • From: James Bucanek <email@hidden>
    • Re: Document object is not being released
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: What happens when an application becomes active
  • Next by Date: Re: NSDatePicker - can it be empty/blank?
  • Previous by thread: Re: What happens when an application becomes active
  • Next by thread: Re: Document object is not being released
  • Index(es):
    • Date
    • Thread