Re: interface builder "read class files"
Re: interface builder "read class files"
- Subject: Re: interface builder "read class files"
- From: Chris Hanson <email@hidden>
- Date: Mon, 24 Dec 2007 15:10:51 -0800
On Dec 24, 2007, at 1:05 PM, mikie wrote:
i have a problem adding the class to the interface builder.
when i do "read class files..." from the file menu and then point
header file
(my_interface_class_with_iboutlets_and_things_like_that.h) to add
it, ib doesn't say anything. no error, no "ding" etc. the same is
when i drag myheaderfile.h from xcode browser. it doesn't appear in
interface builder at all.
Where are you expecting it to appear? I suspect what you expect is
that you will get a new instance in your Interface Builder document --
however, what you read in was a *class*, not an *instance*. The
distinction is critical in Cocoa development.
To get a new instance in Interface Builder, you drag from the
Library. For an instance of a custom class, just drag an NSObject
over to your document, and then change its class in the Identity pane
of the Inspector.
-- 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