On Oct 13, 2008, at 11:16 PM, Martin Redington wrote:
I've got an NSBrowser, and a secondary view whose value depends on the
current selection in the NSBrowser.
[...]
I seem to be capturing everything so far, except for the case where
the selection is extended by holding down shift and the up or down
arrow key.

It sounds like you're subclassing NSMatrix and using -setMatrixClass: on the browser? You might be able to get it to work by also overriding -highlightCell:atRow:column:, but this seems like a lot of work.

How about if you leave the matrix class alone and do [myBrowser setSendsActionOnArrowKeys:YES]? Then give the browser a target and action, and in the action method do whatever you have to do.

I would think there's an even simpler solution using bindings, but I don't know bindings so I can't help you there.

--Andy




_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to