Re: NSButtonCell Ignores Button Type
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