• 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: "Alan Smith" <email@hidden>
  • Date: Mon, 20 Feb 2006 21:05:08 -0600

Ok, after reading the replys…
I read the documentation on apple. In the Interface Builder examples in the
examples in the developer folder, there is a program called
"MultipleNibTab", or something. That program loads a nib into tabs when you
click on a tab. Would someone follow the loading of the nibs back down to
the root code piece? Does it use "loadNibNamed:owner:"? There is a function
called something like "loadNibWithName" that returns a NSView. Talk about
ideal! I was going to take the code apart and put it all into one function
(it uses some funky object) but we left for a two week trip. I would check
the code now, but the computer I'm on doesn't have the dev tools on it.
Dang!

Thanks in advance, Alan

On 2/19/06, Omar Qazi <email@hidden> wrote:
>
> 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

References: 
 >loading nib files (From: "Alan Smith" <email@hidden>)
 >Re: loading nib files (From: Omar Qazi <email@hidden>)

  • Prev by Date: XCode and Cell Phone Development
  • Next by Date: [Moderator] Re: XCode and Cell Phone Development
  • Previous by thread: Re: loading nib files
  • Next by thread: Re: loading nib files
  • Index(es):
    • Date
    • Thread