• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Make an NSButton send a message on right click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Make an NSButton send a message on right click
      • From: Andy Lee <email@hidden>
References: 
 >Make an NSButton send a message on right click (From: Alexander Golec <email@hidden>)
 >Re: Make an NSButton send a message on right click (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Make an NSButton send a message on right click
  • Next by Date: Re: IKImageBrowserView Dragging outside
  • Previous by thread: Re: Make an NSButton send a message on right click
  • Next by thread: Re: Make an NSButton send a message on right click
  • Index(es):
    • Date
    • Thread