Fwd: windowcontroller neccessary?
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.