Re: Best place to set custom NSButtonCell?
Re: Best place to set custom NSButtonCell?
- Subject: Re: Best place to set custom NSButtonCell?
- From: Ryan Stevens <email@hidden>
- Date: Wed, 28 Dec 2005 07:47:02 -0800
On Dec 28, 2005, at 6:42 AM, August Trometer wrote:
I'd like to subclass NSButton. In doing so, I also need to subclass
NSButtonCell. So, I'd like to setCellClass: of the NSButton, but I
can't seem to figure out the best place to do this. If I do it in
initialize:, then the cell class doesn't stick. Of course,
awakFromNib: is too late in the process.
Is there a good technique for doing this?
I don't know that it's the proper way to do it but the method used in
http://www.cocoadev.com/index.pl?CCDColoredButtonCell seems to work
well.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden