• 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: delegate question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delegate question


  • Subject: Re: delegate question
  • From: "Alan Smith" <email@hidden>
  • Date: Sat, 7 Oct 2006 11:25:02 -0400

Overriding public void keyDown(NSEvent theEvent) in your view subclass
should do it.

Read up on the Responder Chain to find out why this will work. Also,
read the NSEvent documentation to figure out how to handle the key
stroke.

Hope this helps, Alan

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
_______________________________________________
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


  • Follow-Ups:
    • Re: delegate question
      • From: Dmitry Markman <email@hidden>
References: 
 >delegate question (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Re: Altering the behavior of NSUserDefaults
  • Next by Date: NSTextView subclass - paste into table cell breaks table?
  • Previous by thread: delegate question
  • Next by thread: Re: delegate question
  • Index(es):
    • Date
    • Thread