• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSButtonCell subclass that ignores events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSButtonCell subclass that ignores events
      • From: Andy Armstrong <email@hidden>
References: 
 >NSButtonCell subclass that ignores events (From: Andy Armstrong <email@hidden>)
 >Re: NSButtonCell subclass that ignores events (From: Ricky Sharp <email@hidden>)
 >Re: NSButtonCell subclass that ignores events (From: Andy Armstrong <email@hidden>)

  • Prev by Date: Creating a Framework: Adding Header Files
  • Next by Date: Re: Problems with objects getting crossed
  • Previous by thread: Re: NSButtonCell subclass that ignores events
  • Next by thread: Re: NSButtonCell subclass that ignores events
  • Index(es):
    • Date
    • Thread