Re: [Leopard] Interface Builder - Subclassing
Re: [Leopard] Interface Builder - Subclassing
- Subject: Re: [Leopard] Interface Builder - Subclassing
- From: "Eric Celeste" <email@hidden>
- Date: Sat, 3 Nov 2007 20:23:16 -0500
Chris, I'm trying very hard to follow what you've said... but I can't.
I'm looking at IB3 and I do what you suggest. I drag NSObject out of
the Library and drop it in my .nib document. Then you say "Get Info on
it". But there is no "Get Info" anywhere in IB3 except for the "i"
button in the toolbar of the .nib file and it only gets info for the
.nib file.
How do you create a subclass in IB3?
Has anyone put a simple tutorial together for XCode3/IB3 that is the
equivalent of the old "Currency Converter" example. None of the
step-by-step tutorials from Apple apply any more. It is hard to
believe that they released XCode3 after the past year's work without
any basic tutorial. I must just be missing something!
...Eric
On 11/3/07, Chris Hanson <email@hidden> wrote:
> 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
>
--
Eric Celeste / http://eric.clst.org / Saint Paul, MN / 651-323-2009 /
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