• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Home and end keys and NSTableView, not handled automatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Fri, 17 Sep 2004 09:25:34 -0700

On Thu, 16 Sep 2004 18:52:55 -0400, "Sean McBride" <email@hidden> said:
>Allan Odgaard (email@hidden) on Tue, Sep 14, 2004 06:22 said:
>
>>> Firstly, since page up and page down are handled automatically surely
>>> home and end could be too.  Is this omission a bug?
>>
>>The second last paragraph at
>><http://developer.apple.com/documentation/Cocoa/Conceptual/
>>BasicEventHandling/Concepts/KeyEvents.html> mentions: "A case in point
>>of a superview handling a keyboard-action message initiated by a
>>subview is the way the NSScrollView object handles page-down commands
>>[...]"
>
>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.

--
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

  • Follow-Ups:
    • Re: Home and end keys and NSTableView, not handled automatically?
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: How to tell if a path is an Application
  • Next by Date: Re: Couple more binding questions
  • Previous by thread: Re: Home and end keys and NSTableView, not handled automatically?
  • Next by thread: Re: Home and end keys and NSTableView, not handled automatically?
  • Index(es):
    • Date
    • Thread