Forcing dealloc on IBOutlets
Forcing dealloc on IBOutlets
- Subject: Forcing dealloc on IBOutlets
- From: Tito Ciuro <email@hidden>
- Date: Mon, 7 Apr 2003 09:21:31 +0200
Hello,
I'm using an NSTabView to act as a container for custom views, which
act as controllers. When I quit the app, the dealloc method in the
hierarchy doesn't get called.
Example:
NSTabView
|
| Page1Controller
|
| IBOutlets (NSButtons, NSTextFields, etc)
| Collection objects (retained)
| Other custom objects (retained)
| Page2Controller
|
| IBOutlets (NSSliders, etc)
| Collection objects (retained)
| Other custom objects (retained)
When I quit the app, I need Page1Controller and Page2Controller to be
dealloc'ed so I can continue cleaning up the rest of the objects, which
include writing defaults back to the user defaults plist.
Should I retrieve each controller manually and call release for each of
them? Am I doing too much work? I thought that NSTabView would dealloc
each view in its hierarchy automatically, but it isn't the case.
Any ideas?
Thanks!
-- Tito
_______________________________________________
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.