creating and using a View xib
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