Re: loading nib files
Re: loading nib files
- Subject: Re: loading nib files
- From: Omar Qazi <email@hidden>
- Date: Sun, 19 Feb 2006 16:24:25 -0800
Set the files owner of the nib file to your controller class and then
give your controller an IBOutlet to the NSTabview.
then load the nib like this:
[NSBundle loadNibNamed:@"YourNib" owner:self];
The Nib won't be in a variable but the tab view will.
On Feb 19, 2006, at 4:00 PM, Alan Smith wrote:
What's the easiest way to load nib files? I need it to be pushed
into a
variable of some sort, a view or something, so that I can set the
contents
of the tabs. Once the nib's contents is in a variable I can easily
addSubview to the tab. I saw loadNibNamed:owner: but what is the
owner? Do I
just put 'self' in?
Thanks in advance, I wrote to this list because I knew I would get
a pretty
quick reply, some how someone else always seems to be on at the
right time,
Alan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden