• 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: when should my NSWindowController be released?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: when should my NSWindowController be released?
      • From: Markus Spoettl <email@hidden>
References: 
 >Re: when should my NSWindowController be released? (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: when should my NSWindowController be released?
  • Next by Date: Re: when should my NSWindowController be released?
  • Previous by thread: Re: when should my NSWindowController be released?
  • Next by thread: Re: when should my NSWindowController be released?
  • Index(es):
    • Date
    • Thread