Re: Setting a subclass of NSButtonCell in code
Re: Setting a subclass of NSButtonCell in code
- Subject: Re: Setting a subclass of NSButtonCell in code
- From: Graham Cox <email@hidden>
- Date: Thu, 15 Apr 2010 19:52:09 +1000
On 15/04/2010, at 7:14 PM, Arun wrote:
> Hi All,
>
> I have subclassed NSButtonCell and overridden some methods.
> I know that we need to set the name of the subclass in the IB to get the
> effects of the subclass.
> Instead of setting it in the IB, is it possible to set the class in the code
> itself? if yes how can we do this.
It depends. If you want to use it with a control, use -setCell:, for a table column, -setDataCell:
--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