FROM : Chris Hanson
DATE : Sun Nov 04 02:10:47 2007
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
DATE : Sun Nov 04 02:10:47 2007
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
| Related mails | Author | Date |
|---|---|---|
| Rick Langschultz | Nov 2, 21:13 | |
| Shawn Erickson | Nov 2, 21:31 | |
| Scott Anguish | Nov 2, 21:34 | |
| Tommy Nordgren | Nov 2, 21:34 | |
| Rick Langschultz | Nov 3, 00:08 | |
| Chris Hanson | Nov 4, 02:10 | |
| Eric Celeste | Nov 4, 02:23 | |
| Eric Celeste | Nov 4, 02:45 | |
| Chris Hanson | Nov 4, 02:53 | |
| Rick Langschultz | Nov 4, 05:01 |






Cocoa mail archive

