Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating AppControllers in InterfaceBuilder 3.1




On Jun 30, 2008, at 7:14 AM, email@hidden wrote:

I'm writing my first project in Leopard and can't figure out how to accomplish the old
"Subclass NSObject/Generate Files/Instantiate" series of steps in Interface Builder 3.1.


What you typically do is to create the subclass in Xcode, and not in IB. Once you've done that, switch back to IB and drag in a generic NSObject from the Library (it looks like a blue cube). Hit Cmd+6 to open the identity inspector, and type the name of the class that you want to instantiate.



On Jun 30, 2008, at 7:20 AM, Tommy Nordgren wrote:

You create the files from an XCode file template, and drag the header file into IB


The thinking here is indeed that Xcode handles the creation of classes, while IB handles instances of classes and their configuration. The last part of that sentence is no longer required though: Xcode and IB are now on better speaking terms, so you don't have to manually tell IB to read header files for it to learn about changes to classes in the project, it stays up to date automatically.


j o a r


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Creating AppControllers in InterfaceBuilder 3.1 (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.