Re: Interface Builder 3 -- Completely New!
Re: Interface Builder 3 -- Completely New!
- Subject: Re: Interface Builder 3 -- Completely New!
- From: Guy English <email@hidden>
- Date: Sat, 27 Oct 2007 18:58:09 -0400
Say I've got a custom NSView subclass with its own outlets and
actions. How does that mesh with IB3? I couldn't make it work right.
I'm on Tiger right now with no Leopard to hand so this may be off a
bit or vague.
In the Library find the Custom View and drag it out to your window.
Inspect it and on the tab with the blue box (cmd-6) you can change
it's class. It *should* be able to autocomplete the class name from
knowing about your Xcode project. Also - the Nib will need to be part
of the project other wise it'll not be able to see your classes.
There's a little green light in the bottom of the instances window
with the project name the nib is part of. After you've got it changed
to the correct class you can control-drag a line from it to hook up
it's outlets. Actions should work too. I'm not sure if it's required
but I always use IBOutlet and IBAction to markup the header file. Any
changes you make to the header are synced automatically with IB3.
I've had some weirdness with that, and it can be slightly annoying.
Sometimes changes won't be picked up. I've found that if I add, say,
an outlet I'll need to hit Return at the end of the line - the syntax
coloring will kick in and I guess the symbol db that IB3 shares gets
updated too. That was on a seed though so maybe it's fixed - haven't
worked on the GM yet.
I do miss the old IB, maybe just out of familiarity, but IB3 is
growing on me. Also IB3 was a little nutty and sometimes just
dangerous on some of the earlier seeds. If you've not tried it in a
while give it a shot.
-Guy
_______________________________________________
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