Re: Home and end keys and NSTableView, not handled automatically?
Re: Home and end keys and NSTableView, not handled automatically?
- Subject: Re: Home and end keys and NSTableView, not handled automatically?
- From: Matt Neuburg <email@hidden>
- Date: Sun, 19 Sep 2004 09:31:08 -0700
On Fri, 17 Sep 2004 13:55:55 -0400, "Sean McBride" <email@hidden> said:
>Matt Neuburg (email@hidden) on Fri, Sep 17, 2004 12:25 said:
>
>>>So I'm trying to make home/end work in the 'right' way....
>>
>>I'm not quite clear what the big deal is here. I simply catch
>>NSHomeFunctionKey and NSEndFunctionKey and call scrollRowToVisible:. Maybe
>>this isn't the "right" way but it took two minutes to write the code, it
>>worked, and I just went on to something else. m.
>
>Fair enough. But since you asked, I'm merely trying to make my app the
>best I can, and, last time I checked, sweating the details was a good
>thing, plus it helps me learn more about Cocoa. Also, there are several
>Cocoa bugs here, so the better I understand them, the better my bug
>reports will be.
>
>My code is currently doing basically what you said above, but I learnt in
>this thread (thanks Allan Odgaard) that the problem is that it works by
>testing for a specific physical key.
No, it doesn't. NSHomeFunctionKey and NSEndFunctionKey are characters, not
keycodes. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden