• 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 Ignores Button Type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButtonCell Ignores Button Type


  • Subject: Re: NSButtonCell Ignores Button Type
  • From: Seth Willits <email@hidden>
  • Date: Tue, 29 Mar 2005 15:41:21 -0800


On Mar 29, 2005, at 12:31 PM, Ricky Sharp wrote:

You know, this may not work out.

I tried this before and it unfortunately doesn't work. The sender is the NSMatrix, not the cell. Why on earth that is the case, I have no idea.




I've found that if you want ultimate control over tracking behavior, firing actions, etc. in a matrix, you may be better off subclassing NSMatrix and handling tracking yourself. I've done this to form custom radio button groups (NSMatrix subclass holding NSActionCell subclass cells).

It seems so odd that something so simple and basic isn't very easy. I still think I hate NSSplitView more than NSMatrix though.



I seem to remember that the above code may not work since the sender of the action would not be the cell (as you'd expect), but the matrix itself. And since you only have one matrix, [sender tag] would always return the same value; the tag value of the matrix.

Exactly.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic


"Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
------------------------------------------------------------------------ ---


_______________________________________________
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 Ignores Button Type -- A Discovery and Annoyance
      • From: Seth Willits <email@hidden>
References: 
 >NSButtonCell Ignores Button Type (From: Seth Willits <email@hidden>)
 >Re: NSButtonCell Ignores Button Type (From: Stephane Sudre <email@hidden>)
 >Re: NSButtonCell Ignores Button Type (From: Seth Willits <email@hidden>)
 >Re: NSButtonCell Ignores Button Type (From: Seth Willits <email@hidden>)
 >Re: NSButtonCell Ignores Button Type (From: Ricky Sharp <email@hidden>)
 >Re: NSButtonCell Ignores Button Type (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Up arrow in NSTextView
  • Next by Date: changing NSMatrix cells attributes
  • Previous by thread: Re: NSButtonCell Ignores Button Type
  • Next by thread: Re: NSButtonCell Ignores Button Type -- A Discovery and Annoyance
  • Index(es):
    • Date
    • Thread