• 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: creating and using a View xib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating and using a View xib


  • Subject: Re: creating and using a View xib
  • From: Graham Cox <email@hidden>
  • Date: Wed, 11 Jun 2008 10:21:09 +1000

A .xib file is just a .nib file in a text format, so it is more compatible with svn. Xcode compiles the .xib into a .nib. So to edit one, use Interface Builder as usual.

because a .xib *is* a .nib, you load it as you do a nib - loadNibNamed:owner: You don't have to do anything different from what you would normally.


G.

On 11 Jun 2008, at 10:00 am, Jerry Isdale wrote:

I'm building up a rather complex UI and would like to design, build, test portions of it as stand alone applications (esp so I can pass subsections to others to build). Initially I started building the apps by creating new Cocoa apps in Xcode3 and using IB to tweak up the MainMenu.xib with Controllers. That worked really nice - quick easy, shows the power of the tools. Now I want to take those boxes, tabs, etc from various standalone tools and put them into an integrated app.

I dont see a simple way to move stuff between MainMenus and a cryptic comment in the IB guide says its a good idea to have multiple NIBs. Digging around a bit I found Xcode Assistant has a New File option for Interface Builder->Cocoa>NIB>View XIB. I create one, copy over what was in MainMenu's Window (a Box holding a number of NSButtons and NSTextFields), and copy over the controller. All looks good. But now what?

How do I get that View/Controller to show up in the application window?
Do I have to programatically load the XIB and position the view within the app?
Do I have to turn it into an IB library object, then drag from library to window?




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: creating and using a View xib
      • From: Jerry Isdale <email@hidden>
References: 
 >creating and using a View xib (From: Jerry Isdale <email@hidden>)

  • Prev by Date: Cocoa PDE validation
  • Next by Date: Re: launching standard apps with NSTask
  • Previous by thread: creating and using a View xib
  • Next by thread: Re: creating and using a View xib
  • Index(es):
    • Date
    • Thread