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