• 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: loading nib files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: loading nib files
      • From: "Alan Smith" <email@hidden>
References: 
 >loading nib files (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: _fastCStringContents selector not recognized
  • Next by Date: Re: loading nib files
  • Previous by thread: loading nib files
  • Next by thread: Re: loading nib files
  • Index(es):
    • Date
    • Thread