Re: Capturing 'pageup' and 'pagedown' keys in NSTextField
Re: Capturing 'pageup' and 'pagedown' keys in NSTextField
- Subject: Re: Capturing 'pageup' and 'pagedown' keys in NSTextField
- From: Ole Voß <email@hidden>
- Date: Mon, 24 Jan 2005 23:43:24 +0100
I took a look at the NSResponder... but if I see the situation correctly
(correct me if I don't), then I will need to subclass NSTextField and
overwrite pageUp and pageDown? I'm fairly new to this, so bear with me.
Is there any other way that you know of to solve the problem?
Regards,
Ole.
How about -pageUp: and -pageDown:, These are clearly defined in
NSResponder, you see NSTextField inherits from NSControl which
inherits it from NSView, which inherits from NSResponder.
The documentation is very helpful at times.
On Mon, 24 Jan 2005 15:48:09 +0100, Ole Voß <email@hidden> wrote:
I've got a NSTextField containing a number (e.g. '123'), which I would
like to respond to pageup and pagedown keys by incrementing or
decrementing the number accordingly. Mind you, it could be any two keys
that are not used for editing.
I'm not asking for a solution, but if somebody could tell me what I
should be looking at, that would be greatly appreciated :-)
_______________________________________________
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