• 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: Releasing windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Problem with NSTimer in Cocoa Java
  • Next by Date: Re: programmatically drawing an NSImageView in an NSView subclass
  • Previous by thread: Releasing windows
  • Next by thread: resizing troubles
  • Index(es):
    • Date
    • Thread