Re: Releasing windows
Re: Releasing windows
- Subject: Re: Releasing windows
- From: Eric Wang <email@hidden>
- Date: Mon, 12 Jan 2004 17:55:39 -0500
on 1/12/04 3:58 PM, Daniel Aarno at email@hidden wrote:
>
I create a window in IB that contains some stuff, say a NSTextField and
>
som buttons, and check the "release" when closed option. I then assume
>
the window is automatically sent a release message after it has
>
received the close message, is this true?
Yes, unless the window is managed by a window controller in which case the
window is released when the window controller is deallocated. See
http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/
UsingWindowController.html#//apple_ref/doc/uid/20000225 for more info.
>
Also when the window is released is the resources "in" it also released (i.e.
>
the text field and buttons)?
Yes. The window manages the view hierarchy and is responsible for freeing
it's memory when it goes away.
Eric Wang
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.