PDA

View Full Version : Xcode 3.0/Interface Builder problems



titan44
28th October 2007, 02:51 PM
Just playing around with Xcode 3.0 and can't work out how the hell to subclass in IB. 3.0 is visually a lot different to 2.0, methinks this is going to take a while to get used to it.

stewiesno1
28th October 2007, 02:56 PM
Xcode on the disc comes with a pretty good guide from memory but I am unsure if what you are after is mentioned there.
Stewie

toholio
28th October 2007, 04:38 PM
Took me a minute to work out what the hell had happened too.

Classes now stay in sync properly between Xcode and Interface Builder. So, you can:

Create the class using Xcode.
Use the library in Interface Builder to add a plain "Object" to your interface.
Use the object's inspector to set its class.


If you prefer something closer to the common way of doing things:

Drag a plain "Object" into your Interface Buidler project.
Change its class.
Give it outlets and actions using the inspector.
Use the Write Class Files option in the FIle menu.

zeddie2001
28th October 2007, 05:01 PM
Classes now stay in sync properly between Xcode and Interface Builder.

About time! It's almost worth upgrading just because of that! Ok, so I'm lazy and forgetful...

titan44
28th October 2007, 05:34 PM
Awesome, thanks guys

bmantzey
5th January 2008, 06:29 PM
Took me a minute to work out what the hell had happened too.

Classes now stay in sync properly between Xcode and Interface Builder. So, you can:

Create the class using Xcode.
Use the library in Interface Builder to add a plain "Object" to your interface.
Use the object's inspector to set its class.


If you prefer something closer to the common way of doing things:

Drag a plain "Object" into your Interface Buidler project.
Change its class.
Give it outlets and actions using the inspector.
Use the Write Class Files option in the FIle menu.



Thank you for an excellent explanation that simply answered a simple question that may have taken hours to find an answer. Cheers!