Re: NSView subclass never gets dealloced?
Re: NSView subclass never gets dealloced?
- Subject: Re: NSView subclass never gets dealloced?
- From: Nat! <email@hidden>
- Date: Fri, 29 Mar 2002 21:13:27 +0100
Am Freitag den, 29. Mdrz 2002, um 17:37, schrieb Erik M. Buck:
----- Original Message -----
From: "Brock Brandenberg" <email@hidden>
NSView subclass never gets dealloced?
I'm seeing the same thing on an NSView subclass and can't figure out
what's wrong. If the window is set to releaase on close, the dealloc
gets called, but this is not the right thing to do if using the
default
window controller. You'll get a crash if selecting a menu right
afterwards. I think the docs are incorrect too, in that they
mention the
default behavior for an NSWindow is to release on close, yet IB
sets the
default to NOT release on close. Again, I'm assuming that it has
something to do with the default window controller.
1) NSWindowController releases top level objects in associates
nibs. If you
are not using NSWindowController then you must release them yourself.
Does anyone have a good idea how this is done technically ? It
would be useful for me to load a NIB and enumerate over the top
level objects, without having to manually connect them all to
outlets.
Cheers
Nat!
------------------------------------------------------
Some people drink deep from the fountains of life, and
some just gargle. -- DLR
_______________________________________________
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.