Access to nibs topLevelObjects without outlets and without instantiateNibWithOwner:topLevelObjects:
Access to nibs topLevelObjects without outlets and without instantiateNibWithOwner:topLevelObjects:
- Subject: Access to nibs topLevelObjects without outlets and without instantiateNibWithOwner:topLevelObjects:
- From: "Gustavo Vera" <email@hidden>
- Date: Thu, 7 Jun 2007 18:20:25 -0300
I need access to the topLevelObjects on every Nib on my app. On my nibs, I
use a customized controller for each one, but everyone inherits from
NSWindowController.
I understand that, when released, my controllers release each topLevelObject
in the corresponding nib, so I assume that each one as access (in the
inherited functionallity) to those objects. Now, I need to do an "extra
process", not as a previous step on the release process, but when loading
the nib. How can I get access to those topLevelObjects without changing my
nib-loading-schema to the "– instantiateNibWithOwner:topLevelObjects:"
modality?
I currently get nibs loaded just instantiating their corresponding
controllers and invoking a "showWindow". I have one controller for each nib,
following naming conventions that allows me to induce the nib that should be
loaded by the controller class name. I have for example:
Nib name: UICustomers.nib
Controller class: CtllrUICustomers (inherits from CtllrUIBase :
NSWindowController)
At CtllrUIBase I have an implementation that uses something like [self
initWithWindowNibName:nibName]; with a derived nibName based on the class
name.
The "extra process" that I wanna implement for the topLevelObjects, should
be implemented at CtllrUIBase level. Any Ideas?
I saw a NSArray *_topLevelObjects; at NSWindowController.h, but when I
intended to use it, I realized that is private. Any suggestions?
Thanks in advance!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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