• 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: Interface Builder 3 -- Completely New!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Interface Builder 3 -- Completely New!
      • From: Jon Hess <email@hidden>
References: 
 >Interface Builder 3 -- Completely New! (From: "Aaron Vegh" <email@hidden>)
 >Re: Interface Builder 3 -- Completely New! (From: John Stiles <email@hidden>)
 >Re: Interface Builder 3 -- Completely New! (From: Guy English <email@hidden>)
 >Re: Interface Builder 3 -- Completely New! (From: John Stiles <email@hidden>)

  • Prev by Date: Re: GCC 3.3?
  • Next by Date: Re: Best Way to Rotate
  • Previous by thread: Re: Interface Builder 3 -- Completely New!
  • Next by thread: Re: Interface Builder 3 -- Completely New!
  • Index(es):
    • Date
    • Thread