• 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: Capturing 'pageup' and 'pagedown' keys in NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >RE: Re: Pictures as characters (From: "Peter Karlsson" <email@hidden>)
 >RE: Re: Pictures as characters (From: Ricky Sharp <email@hidden>)
 >Capturing 'pageup' and 'pagedown' keys in NSTextField (From: Ole Voß <email@hidden>)
 >Re: Capturing 'pageup' and 'pagedown' keys in NSTextField (From: The Karl Adam <email@hidden>)

  • Prev by Date: Table Control
  • Next by Date: Re: Capturing 'pageup' and 'pagedown' keys in NSTextField
  • Previous by thread: Re: Capturing 'pageup' and 'pagedown' keys in NSTextField
  • Next by thread: Re: Capturing 'pageup' and 'pagedown' keys in NSTextField
  • Index(es):
    • Date
    • Thread