NSScrollView implements scrollPageDown?
NSScrollView implements scrollPageDown?
- Subject: NSScrollView implements scrollPageDown?
- From: Glen Low <email@hidden>
- Date: Sat, 10 Apr 2004 07:14:49 +0800
Dear All,
I'm implementing keyboard navigation on my custom view, which if I
understand it correctly, the canonical way is to implement keyDown: to
send interpetKeyEvents:, which then sends doCommandBySelector: with the
appropriate selector back to my custom view. Then doCommandBySelector:
either handles it itself or passes it up the responder chain --
-- see
http://developer.apple.com/documentation/Cocoa/Conceptual/
BasicEventHandling/Concepts/KeyEvents.html.
Now my custom view sits inside of a NSScrollView. According to that
document, "the NSScrollView class provides a default implementation [of
scrollPageDown;] so this implementation is invoked." This doesn't seem
to work in my case; the doCommandBySelector call falls down with a
beep. Just to be sure, I checked it with:
[self respondsToSelector: sel]
[[self enclosingScrollView] respondsToSelector: sel]
when sel is the scrollPageDown selector, both of which return NO. This
means that contrary to docs, NSScrollView doesn't implement
scrollPageDown: ?!
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.