On Oct 22, 2009, at 5:28 PM, Alexander Golec wrote:
For the cells, I want to have a matrix of NSButtons, and I want each button to respond differently to right clicks and left clicks. Would I have to extend NSButton or something?
Yup. Subclass NSButton, override -mouseDown: and check whether the event uses the right button. If so, do your thing; otherwise, call the superclass method.
—Jens_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
