• 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: Properly supporting 'delete' key presses in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Properly supporting 'delete' key presses in NSTableView


  • Subject: Re: Properly supporting 'delete' key presses in NSTableView
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 20 Oct 2008 15:51:45 -0700


On Oct 20, 2008, at 2:49 PM, Dalzhim Dalzhim wrote:

This following episode of Late Night Cocoa gives a solution to this precise problem of implementing the delete functionality on TableViews and OutlineViews without having to subclass it.

http://www.mac-developer-network.com/podcasts/latenightcocoa/episode9/index.html

Hope it helps :)

Can you elaborate on what the episode recommends? (Sorry, I don't have time to listen through the 40 mins).


I recommend subclassing; and, in many ways, that is a fine solution.

Sean:

I assume NSOutlineView is the same?

Yes, it is.


- so will this actually work with custom keybindings? Or is there just
no good way to support that?

I don't think so, since it is hardcoding the key. You might get some mileage from calling -interpretKeyEvents: yourself, but it may have side effects.



- did I miss a constant for the backward delete char (an analogue to NSDeleteCharacter)? I'm using 0xf728, discovered via gdb. :(


NSDeleteFunctionKey

-corbin



Cheers,

--
____________________________________________________________
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


_______________________________________________

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: Properly supporting 'delete' key presses in NSTableView
      • From: "Dalzhim Dalzhim" <email@hidden>
References: 
 >Properly supporting 'delete' key presses in NSTableView (From: "Sean McBride" <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: Corbin Dunn <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: "Sean McBride" <email@hidden>)
 >Re: Properly supporting 'delete' key presses in NSTableView (From: "Dalzhim Dalzhim" <email@hidden>)

  • Prev by Date: Re: GDB Problems
  • Next by Date: Re: Return and Enter don't "behave" in Text Field (Newb)
  • Previous by thread: Re: Properly supporting 'delete' key presses in NSTableView
  • Next by thread: Re: Properly supporting 'delete' key presses in NSTableView
  • Index(es):
    • Date
    • Thread