I have a NSView "template" in my nib that I am duplicating in a
container view like this:
- (void) awakeFromNib
{
NSView *view;
NSData *templateView = [NSArchiver
archivedDataWithRootObject:myView];
view = [NSUnarchiver unarchiveObjectWithData:templateView];
[self addSubview:view];
view = [NSUnarchiver unarchiveObjectWithData:templateView];
[self addSubview:view];
Unfortunately (but to no big surprise) this does not set the IBOutlets.
Is there any other way but injecting the references myself?
cheers
--
Torsten
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]