Correctly implementing page up/down, home and end for custom views?
Correctly implementing page up/down, home and end for custom views?
- Subject: Correctly implementing page up/down, home and end for custom views?
- From: Jim Correia <email@hidden>
- Date: Mon, 30 Jul 2007 23:39:33 -0400
I have a custom view which can be (and often is) embedded in an
NSScrollView.
It appears that I get page up/down behavior for free. (By way of -
[NSWindow _processKeyboardUIKey:].) But I don't get home/end behavior
for free. (Is this a bug or oversight?)
What is the correct way to implement home/end?
I currently have overridden -keyDown: to call -interpretKeyEvents:
and have (re)implemented the NSReponder methods for page up/down and
home/end. This works, but is it the expected/correct design pattern?
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden