Classes sync in XCode and Interface Builder

Beatnik on 2007-11-12T20:53:38

The Building Cocoa Applications: A Step by Step Guide book I got for my birthday (along with Learning Cocoa with Objective-C, Second Edition) covers the older version of Interface Builder and covers Project Builder instead of XCode. Both the books are about 5 years old.. Applications have obviously changed since then. One of the things I had problems with, was finding how exactly I would subclass NSObject properly. This page helped a bit.. I still couldn't get Interface Builder to synchronize with XCode. When adding actions and outlets, in XCode, Interface Builder picks up just fine, but not vice versa :(


IB and XCode

eco on 2007-11-12T23:06:45

hmmm... I think it is rather discouraged to add outlets/actions to already generated code, since this could affect the code you already wrote (IB regeneration could make you loose your code). Therefor it's recommended not to do this and act as you mentioned once the generated code has been altered.

Re:IB and XCode

Beatnik on 2007-11-13T20:08:59

Ofcourse but the IB makes adding outlets and actions handy.. clickety-click.. :)