Re: NSButtonCell subclass that ignores events
Re: NSButtonCell subclass that ignores events
- Subject: Re: NSButtonCell subclass that ignores events
- From: Andy Armstrong <email@hidden>
- Date: Thu, 6 Oct 2005 02:01:24 +0100
On 6 Oct 2005, at 01:54, Ricky Sharp wrote:
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?
If I implement the indicator as a subclass of NSControlCell and want
my control to work in Interface Builder I have to provide code to
handle serialising the control's state and I have to implement
accessors for that state. If I subclass NSButtonCell all I have to do
is stop it from being pressed. While I'm quite happy to implement my
control as a NSControlCell subclass - and have in fact done so - I
believe it would be more elegant to subclass NSButtonCell.
Judging by the way everyone's counselling against it I'm getting the
sense that that's contrary to the wisdom of the list. How so? I'm not
being argumentative - just wondering.
--
Andy Armstrong, hexten.net
_______________________________________________
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