Re: intercepting NSBrowser multiple selection extension with shift down/up arrow
Re: intercepting NSBrowser multiple selection extension with shift down/up arrow
- Subject: Re: intercepting NSBrowser multiple selection extension with shift down/up arrow
- From: Andy Lee <email@hidden>
- Date: Tue, 14 Oct 2008 00:25:23 -0400
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 (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