Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loading nib files



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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >loading nib files (From: "Alan Smith" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.