• 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: How to capture Key event in a NSApp?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to capture Key event in a NSApp?


  • Subject: Re: How to capture Key event in a NSApp?
  • From: Apparao <email@hidden>
  • Date: Wed, 18 Oct 2006 11:09:40 +0530

Use currentEvent method in NSAplication,

[[NSApplication sharedApplication] currentEvent] --- Returns the last event the receiver retrieved from the event queue.


On 18-Oct-06, at 2:04 AM, Raul wrote:

Hi to all ,

I want to capture the key press "p" event inside NSWindow to print the
NSTextField Text.

I know how to print NSTextField Text but i don't know how to capture
the key press "p" inside NSWindow.

Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40effigent.net


This email sent to email@hidden


_______________________________________________ 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: 
 >How to capture Key event in a NSApp? (From: Raul <email@hidden>)

  • Prev by Date: How to get hyperlink in a html file?
  • Next by Date: Capture spacebar
  • Previous by thread: How to capture Key event in a NSApp?
  • Next by thread: How to capture Key event in a NSApp?
  • Index(es):
    • Date
    • Thread