• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Design Q... multiple NIB files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Design Q... multiple NIB files (From: stuartbryson <email@hidden>)

  • Prev by Date: Re: WTF? How can this work?
  • Next by Date: Re: Redeclaring overrides
  • Previous by thread: Re: Design Q... multiple NIB files
  • Next by thread: Re: Design Q... multiple NIB files
  • Index(es):
    • Date
    • Thread