Re: NSButtonCell subclass that ignores events
Re: NSButtonCell subclass that ignores events
- Subject: Re: NSButtonCell subclass that ignores events
- From: Ricky Sharp <email@hidden>
- Date: Wed, 5 Oct 2005 19:54:01 -0500
On Oct 5, 2005, at 5:08 PM, Andy Armstrong wrote:
On 5 Oct 2005, at 22:59, Ricky Sharp wrote:
Why not just subclass NSCell instead?
Yes, could do - I should have been clearer about that. I originally
subclassed NSCell and had a control that did exactly what I wanted.
So I should have stopped then, right? :)
I wasn't entirely happy with duplicating the bits of button
behaviour I wanted though - it seemed inelegant. So now I'm
investigating subclassing NSButtonCell and disabling event handling
- basically to see which solution looks cleaner to me.
So given that I know that subclassing NSCell works fine are you
saying that that's preferable to subclassing NSButtonCell?
What "behaviors" do you want? To me, behaviors imply how the control
works with input devices. Are you talking about the appearance of
your indicator? If so, why would you want it to look like a button?
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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