CustomView and nib file
CustomView and nib file
- Subject: CustomView and nib file
- From: Jacques <email@hidden>
- Date: Sun, 28 Sep 2003 18:15:33 +0200
Hi folks,
After reading the mailing lists archives, I don't interstood how to use
nib file to put custom view in a window.
I have an NSView on my main window (in MainNib file). In an other nib
file, I have a NSView (with controls) and I would like to replace the
empty NSView (in the main window) by the loaded one.
In the main controller I have an outlet (NSView *theEmptyView).
In the second nib file, file's owner is NSView, and I have an outlet to
connect my NSView.
I can read the nib file :
if(![NSBundle loadNibNamed:@"myCustomView" owner:self])
{
NSLog(@"Failed to load nib file");
NSBeep();
}
But, I don't interstand what to do next to display the custonView in
insteed of theEmptyView.
Thanks in advance for your help,
Jacques
--
PRETRE : personne que tout le monde appelle " Phre " , sauf ses enfants qui
l'appellent " mon oncle " .
P. Desproges
_______________________________________________
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.