• 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
Double-click/Return/Enter in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Double-click/Return/Enter in NSTableView


  • Subject: Double-click/Return/Enter in NSTableView
  • From: James Bucanek <email@hidden>
  • Date: Fri, 2 Jun 2006 10:28:11 -0700

Hopefully, this will be easier to answer than my last question (and contain fewer typographical errors too).

I have an NSTableView displaying a list of records. I want the user to be able to edit a record in a separate window by double-clicking on a row or selecting one or more rows and pressing Return or Enter. Also, the should be able to delete a record by selecting it and using Edit > Clear or the Delete key.

Is there some functionality in NSTableView/NSControl that will do this, or do I just override mouseDown: and keyDown: and look for the events I'm interested in?

--
James Bucanek
 _______________________________________________
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: Double-click/Return/Enter in NSTableView
      • From: Brian Stern <email@hidden>
    • Re: Double-click/Return/Enter in NSTableView
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Newbie error
  • Next by Date: Re: why doesn't my scrollview scroll ...
  • Previous by thread: Re: NSMatrix setCellClass: vs setPrototype:
  • Next by thread: Re: Double-click/Return/Enter in NSTableView
  • Index(es):
    • Date
    • Thread