Re: NSButtonCells in Custom View
Re: NSButtonCells in Custom View
- Subject: Re: NSButtonCells in Custom View
- From: stephane sudre <email@hidden>
- Date: Tue, 12 Oct 2004 18:13:34 +0200
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.
_______________________________________________
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