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

creating and using a View xib


  • Subject: creating and using a View xib
  • From: Jerry Isdale <email@hidden>
  • Date: Tue, 10 Jun 2008 17:00:35 -0700

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


  • Follow-Ups:
    • Re: creating and using a View xib
      • From: Chris Hanson <email@hidden>
    • Re: creating and using a View xib
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: launching standard apps with NSTask
  • Next by Date: Re: changing locale
  • Previous by thread: Re: launching standard apps with NSTask
  • Next by thread: Re: creating and using a View xib
  • Index(es):
    • Date
    • Thread