[comp.sys.next] NXBrowser with acceptArrowKeys:YES

eps@toaster.SFSU.EDU (Eric P. Scott) (06/16/91)

I just couldn't leave well enough alone.  When I (a firm believer
that mice are vermin) realized that I could enable arrow keys for
an NXBrowser, I was ecstatic.

So I sent it an acceptArrowKeys:, and asked its window to
makeFirstResponder: it.  So far, so good.  The problem is that,
unlike a mouse click, the NXBrowser's action message is never
sent.  I want things to behave like Workspace Manager Browsers!

If I have to subclass NXBrowser and override keyDown:, I'm not
going to be happy--that means that I can't use Interface
Builder's prefab NXBrowser (well, I could, but things would get
ugly), and instead need to set up a custom view and do all the
initialization manually.  The docs also say to keep my paws off
doClick: (grr), so I'd at least need to perform
[self sendAction:action to:target], and possibly also look at
which key was pressed (for example, to have a left arrow from
column 0 reset the currently selected NXBrowserCell).  No doubt
some other nonsense as well.  Am I confused, or is NXBrowser
just not well thought-out?

[I assume SavePanel/OpenPanel doesn't use this, instead picking
off arrow keys with textDidEnd:endChar: from its field editor?]

Any suggestions are welcome!

					-=EPS=-