Re: when should my NSWindowController be released?
Re: when should my NSWindowController be released?
- Subject: Re: when should my NSWindowController be released?
- From: Charles Steinman <email@hidden>
- Date: Sat, 13 Sep 2008 00:08:16 -0700 (PDT)
--- On Fri, 9/12/08, Markus Spoettl <email@hidden> wrote:
> I have observed the following in my application:
>
> When the document is closed while the application keeps
> running, my
> document, window controller and dependent windows get
> deallocated as
> expected.
>
> However, when the document closes while during application
>
> termination, the document and window controller get
> deallocated, but
> the document window are not (as a result lots of other
> things don't
> get deallocated).
The process's entire memory space is freed when it terminates. Because of this, objects may not ever receive a dealloc message. The documentation for -[NSObject dealloc] discusses this.
Cheers,
Chuck
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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