Re: Two Newbie Questions
Re: Two Newbie Questions
- Subject: Re: Two Newbie Questions
- From: Graham Cox <email@hidden>
- Date: Thu, 17 Feb 2011 11:00:17 +1100
On 17/02/2011, at 10:53 AM, Bruce Cresanta wrote:
> I thought there was a long process to make the control even visible to IB? I could create a custom view and set the class, but that wouldn't show the button would it?
No, it would show a blank green rectangle (if it's a NSView subclass) or a standard button (if it's a NSButton subclass), but the point is you can set its properties, outlets, and so on, and at runtime it would use your custom class, so would appear as you want it. Just set the class in the 'Class' section of the 'View Identity' tab in the Inspector.
You only need to create an IB plug-in if you want it WYSIWYG in IB, or if it has special settings that you wish to set in IB and not in code.
--Graham_______________________________________________
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