• 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
Make NSTextField recieve all keyboard events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make NSTextField recieve all keyboard events


  • Subject: Make NSTextField recieve all keyboard events
  • From: Nils Hjelte <email@hidden>
  • Date: Wed, 27 Aug 2003 02:17:10 +0200

Hello, I have an NSTextField which is used to receive text commands from the user. How do I make all keyboard-events go into that text field? If some other view is first responder when the app recieves a keyboard event I want it to "automatically" change first responder to the text field, without having to click on the text field.

Is subclassing NSWindow a good way of achieving this?

// Nils Hjelte
_______________________________________________
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.

  • Prev by Date: Re: RGB color values for NSColor
  • Next by Date: Re: Sleep Notification?
  • Previous by thread: Sleep Notification?
  • Next by thread: Archiving and Unarchiving
  • Index(es):
    • Date
    • Thread