Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!agate!ziploc!eps From: eps@toaster.SFSU.EDU (Eric P. Scott) Newsgroups: comp.sys.next Subject: NXBrowser with acceptArrowKeys:YES Summary: Arrgh!!! Message-ID: <1740@toaster.SFSU.EDU> Date: 16 Jun 91 08:33:23 GMT Article-I.D.: toaster.1740 Reply-To: eps@cs.SFSU.EDU (Eric P. Scott) Organization: San Francisco State University Lines: 27 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=-