• 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 behavior changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView behavior changes


  • Subject: Re: NSTableView behavior changes
  • From: Raleigh Ledet <email@hidden>
  • Date: Wed, 18 Mar 2009 16:03:54 -0700

Harry,

On Mar 18, 2009, at 11:18 AM, Harry Plate wrote:

<snip>

After more googling last night, I found similar suggestions; in fact I ended
up subclassing the NSTableView, and overriding keyDown:


This worked very nicely.

One problem that still troubles me is I cannot seem to trap <cmd>A - I was
hoping to implement a "select all" functionality for my "uneditable" table
view. I can get <option>A, or <control>A --- but it appears that someone
else swallows the <cmd>A

That's because Cmd-A is a key equivalent. The "Select All" Edit menu item gets triggered for you. I don't understand what you mean by "uneditable" table view. Editable and selectable are 2 different things and editable has no meaning in this case. NSTableView will select everything in response to the edit menu provided that you tell the tableview to allowsMultipleSelection (in IB) and your delegate doesn't prevent the selection via tableView:selectionIndexesForProposedSelection:.


If you want the tableview to allow a select all, why would you want to prevent the user from independently selecting multiple items?

-raleigh


_______________________________________________

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: NSTableView behavior changes
      • From: Harry Plate <email@hidden>
References: 
 >Re: NSTableView behavior changes (From: Harry Plate <email@hidden>)

  • Prev by Date: How does OS X launch login items hidden?
  • Next by Date: Re: NSTableView behavior changes
  • Previous by thread: Re: NSTableView behavior changes
  • Next by thread: Re: NSTableView behavior changes
  • Index(es):
    • Date
    • Thread