Re: Make an NSButton send a message on right click
Re: Make an NSButton send a message on right click
- Subject: Re: Make an NSButton send a message on right click
- From: Kyle Sluder <email@hidden>
- Date: Fri, 23 Oct 2009 11:42:49 -0700
On Fri, Oct 23, 2009 at 10:55 AM, Jens Alfke <email@hidden> wrote:
> Yup. Subclass NSButton, override -mouseDown: and check whether the event
> uses the right button. If so, do your thing; otherwise, call the superclass
> method.
This isn't going to work, because Alexander is using an NSMatrix.
This means NSButtonCells, not NSButtons.
You'll need to subclass NSMatrix.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden