Re: Design Q... multiple NIB files
Re: Design Q... multiple NIB files
- Subject: Re: Design Q... multiple NIB files
- From: Ondra Cada <email@hidden>
- Date: Sun, 19 Aug 2001 12:07:15 +0200
stuartbryson,
>
>>>>> stuartbryson (s) wrote at Mon, 20 Aug 2001 10:12:58 +1000:
s> Make sense. In any case, how are multiple NIB files implemeneted via one
s> controller? How do the outlets work etc.
Normally. Different outlets for different NIBs work without a problem, with
same outlet for different NIBs (or one NIB loaded more times) the last loaded
wins -- naturally.
If you need that, just store the outlet values, something more or less like
@interface MyCtrl {
id outlet;
NSMutableDictionary *outletByWindowTitle;
} @end
@implementation MyCtrl
-(void)doLoadTheNibOnceMore {
[self loadNibNamed:...];
[outletByWindowTitle setObject:outlet forKey:[[outlet window] title]];
}
@end
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc