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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to