• 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: Creating a class from files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a class from files


  • Subject: Re: Creating a class from files
  • From: Jonathan Hess <email@hidden>
  • Date: Mon, 14 Jan 2008 10:19:45 -0800


On Jan 12, 2008, at 8:43 AM, Patrick Mahoney wrote:

Hello,

I'm quite new to Cocoa development and I'm sad to say that I'm stuck pretty early on. I was walking through the Currency Converter example (with some minor changes), and I cannot get IB to create the CustomConverter from the file I laid out. Selecting File -> Read Class Files -> CustomController.h doesn't return any errors, but doesn't create an instance in my .nib file either.

Hey Patrick -

That's because "Read Class Files…" only informs interface builder about a class. To create an instance of a class, drag an instance of "NSObject" out of the library, to your main document window, and then use the identity inspector (Command+6) to change the custom class to "CustomConverter".

Jon Hess



I have double checked that I have IBOutlets (and IBActions) in my .h file, and the formation is identical to what is shown in the tutorial, but still nothing. I'm at a complete loss for what to do to. I made sure that the project compiles w/o error (though I know that isn't necessary). Does IB log any output anywhere (I didn't find anything in the system logs)?

Thanks,
Patrick
_______________________________________________

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

_______________________________________________

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: 
 >Creating a class from files (From: Patrick Mahoney <email@hidden>)

  • Prev by Date: Drag-and-drop and deferred events
  • Next by Date: Re: A question about NSPredicateEditor and NSPredicateEditorRowTemplate
  • Previous by thread: Re: Creating a class from files
  • Next by thread: Re: Creating a class from files
  • Index(es):
    • Date
    • Thread