Re: interface builder "read class files"
Re: interface builder "read class files"
- Subject: Re: interface builder "read class files"
- From: mikie <email@hidden>
- Date: Tue, 25 Dec 2007 16:24:28 +0100
On 2007/12/25, at 0:10, Chris Hanson 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*.
yes... for some reason i expected to have an instance right away. :)
The distinction is critical in Cocoa development.
... like in every other oo environment i would say :)
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.
ok. now i got it.
but i'm still confused... why is it that tricky? why doesn't the
object appear in "custom objects" or so, so i could just drag it as
is, instead of dragging NSObject and changing the type afterwards?
thanks a lot guys,
mikie
_______________________________________________
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