• 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
Fwd: windowcontroller neccessary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: windowcontroller neccessary?


  • Subject: Fwd: windowcontroller neccessary?
  • From: James DiPalma <email@hidden>
  • Date: Tue, 14 Jan 2003 00:15:03 -0800

From: daniel oberhoff <email@hidden>

ok, thanks! i think things are clearer now. but what do you mean with leaking? wont the principal NSApplication deallocate recources used by the main nib-file (or similarly wont the NSDocument subclass deallocate the documents nib-files resources)?

There was some discussion months ago about not worrying about NSApplication deallocing resources; when your app quits, all its resources should clean up anyway.

NSDocument does not release anything that it doesn't own; however, it does own all NSWindowControllers that where added using -addWindowController (unless you wrote code to prevent it, your document's window's window controller was added).

When an NSWindowController is released, it will also release nib-files resources.



-jim


P.S. remember that no one should deallocate anything; using release will dealloc objects that should be dealloced.
_______________________________________________
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: Re: Aqua Human Interface and Safari
  • Next by Date: Re: Aqua Human Interface and Safari
  • Previous by thread: Fwd: windowcontroller neccessary?
  • Next by thread: Re: windowcontroller neccessary?
  • Index(es):
    • Date
    • Thread