Skip navigation.
 
mlRe: NSButtonCells in Custom View
FROM : stephane sudre
DATE : Tue Oct 12 18:13:34 2004

On Oct 12, 2004, at 6:07 PM, Michael Becker wrote:

> Hi!
>
> I want to draw a matrix of buttons in a custom view that need to
> re-organise whenever the view's size changes. I've taken the advice to
> use NSButtonCells instead of NSButtons. However, these NSButtonCells
> don't do anything. They're displayed, I connected their targets and
> actions but they don't respond to mouse clicks in whatsoever way.
>
> [...]
> So what do I have to do to get the NSButtonCells to work?


Ovverride mouseDown: in your custom view. So that you can redirect the
event to the appropriate cell.

Related mailsAuthorDate
mlNSButtonCells in Custom View Michael Becker Oct 12, 18:07
mlRe: NSButtonCells in Custom View stephane sudre Oct 12, 18:13