Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-14 Thread Martin Redington
On Tue, Oct 14, 2008 at 2:04 PM, Andy Lee <[EMAIL PROTECTED]> wrote: > On Oct 14, 2008, at 8:11 AM, Martin Redington wrote: >> >> On Tue, Oct 14, 2008 at 8:12 AM, Andy Lee <[EMAIL PROTECTED]> wrote: >>> >>> If it helps with the ick factor, I >>> would say that it's much less hacky to take advantage

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-14 Thread Andy Lee
On Oct 14, 2008, at 8:11 AM, Martin Redington wrote: On Tue, Oct 14, 2008 at 8:12 AM, Andy Lee <[EMAIL PROTECTED]> wrote: If it helps with the ick factor, I would say that it's much less hacky to take advantage of one method's documented purpose -- "do something when the selection changes, eve

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-14 Thread Martin Redington
On Tue, Oct 14, 2008 at 8:12 AM, Andy Lee <[EMAIL PROTECTED]> wrote: > On Oct 14, 2008, at 12:45 AM, Martin Redington wrote: >> >> On Tue, Oct 14, 2008 at 5:25 AM, Andy Lee <[EMAIL PROTECTED]> wrote: >>> >>> How about if you leave the matrix class alone and do [myBrowser >>> setSendsActionOnArrowKe

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-14 Thread Andy Lee
On Oct 14, 2008, at 12:45 AM, Martin Redington wrote: On Tue, Oct 14, 2008 at 5:25 AM, Andy Lee <[EMAIL PROTECTED]> wrote: 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 wh

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-13 Thread Martin Redington
On Tue, Oct 14, 2008 at 5:25 AM, Andy Lee <[EMAIL PROTECTED]> wrote: > 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,

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-13 Thread Andy Lee
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 o

intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-13 Thread Martin Redington
I've got an NSBrowser, and a secondary view whose value depends on the current selection in the NSBrowser. When only one item is selected, the secondary view shows the path of the selected item. When multiple items are selected, the secondary view should show nothing. I've set up a notification,