• 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: [Leopard] Interface Builder - Subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Leopard] Interface Builder - Subclassing


  • Subject: Re: [Leopard] Interface Builder - Subclassing
  • From: Chris Hanson <email@hidden>
  • Date: Sat, 3 Nov 2007 18:10:47 -0700

On Nov 2, 2007, at 1:34 PM, Tommy Nordgren wrote:

According to info during Leopard tech Talks, early 2007, Stockholm, Sweden,
Interface Builder 3 won't have code generation. Create your class in Xcode, and then tell interface builder
to parse the header file.

While this is the straightforward workflow, Interface Builder 3 does still support generating classes and code -- more flexibly than Interface Builder 2, too!


You can drag an object out of the Library window and into your IB document or an IB editor window, and then Get Info on it and change its class to anything you want. There, you have a subclass. You can generate a file for this class by choosing "Write Class Files..." from the File menu while in the Identity Inspector for that object.

Or you can simply select an outlet or action that you've added in the Identity Inspector, use the Copy command, and then go to the class's header file and choose Paste. That will put a declaration for that outlet or action into the header.

Note that you can generate not just stub Objective-C code and headers, but also Python and Ruby code for PyObjC and RubyCocoa, respectively!

  -- Chris

_______________________________________________

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: [Leopard] Interface Builder - Subclassing
      • From: "Eric Celeste" <email@hidden>
References: 
 >[Leopard] Interface Builder - Subclassing (From: Rick Langschultz <email@hidden>)
 >Re: [Leopard] Interface Builder - Subclassing (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: Why initialize the menubar without Interface Builder
  • Next by Date: Re: Why initialize the menubar without Interface Builder
  • Previous by thread: Re: [Leopard] Interface Builder - Subclassing
  • Next by thread: Re: [Leopard] Interface Builder - Subclassing
  • Index(es):
    • Date
    • Thread