• 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: NSTableView + delete button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView + delete button?


  • Subject: Re: NSTableView + delete button?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 12 Mar 2008 10:43:49 -0400
  • Organization: Rogue Research

On 3/11/08 8:47 PM, Kevin Dixon said:

>I have implemented -keyDown as such
>
>if([theEvent type] == NSKeyDown) {
>	if([theEvent keyCode] == 51) {
>		//process 'delete' press
>	}
>}
>
>to catch the pressing of delete on the NSTableView. This works, but
>reminds me of BASIC...Is there a better way to do this, to make sure I'm
>getting the delete key, say even on international keyboards?

See NSResponder's deleteBackward: method and docs.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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

References: 
 >NSTableView + delete button? (From: "Kevin Dixon" <email@hidden>)
 >Re: NSTableView + delete button? (From: j o a r <email@hidden>)
 >Re: NSTableView + delete button? (From: "Kevin Dixon" <email@hidden>)

  • Prev by Date: Clean NSWindowController / NSObjectController architecture
  • Next by Date: encoding objects containing NSData ivars using NSKeyedArchiver
  • Previous by thread: Re: NSTableView + delete button?
  • Next by thread: Launch Daemon Best Practices?
  • Index(es):
    • Date
    • Thread