• 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
Control-click on NSTableView without subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Control-click on NSTableView without subclassing


  • Subject: Control-click on NSTableView without subclassing
  • From: David Chan <email@hidden>
  • Date: Mon, 14 Nov 2005 11:22:37 +0800

Hi all,
 I wonder if I could, without subclassing the nstableview, get notified when
user control-click on the table's row. I believe the click part can be done
by doing:
[tableView setAction:@selector(method:)];
 I have another NSCustomView which I subclass and in that case, there is no
problem as I could use
- (void) mouseDown:(NSEvent *)e
and use modifierFlags & NSControlKeyMask
to capture this event.
 but I am not sure how to get my tableview notified when the control key is
clicked.
I would rather not subclassing the NStableview, is that possible?
 Thank you.
 Regards
David
 _______________________________________________
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

  • Follow-Ups:
    • Re: Control-click on NSTableView without subclassing
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Finding if application launched due to document open?
  • Next by Date: [OFF] Volunteers to test on 10.2
  • Previous by thread: Finding if application launched due to document open?
  • Next by thread: Re: Control-click on NSTableView without subclassing
  • Index(es):
    • Date
    • Thread