• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: interface builder "read class files"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >interface builder "read class files" (From: mikie <email@hidden>)
 >Re: interface builder "read class files" (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: IB Array Controller Fetch Predicate with Content Set
  • Next by Date: Re: Do NSSearchFields really send an action up the responder chain when the user clicks the cancel button?
  • Previous by thread: Re: interface builder "read class files"
  • Next by thread: Re: interface builder "read class files"
  • Index(es):
    • Date
    • Thread