• 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: Dmitry Markman <email@hidden>
  • Date: Mon, 9 Oct 2006 09:30:42 -0400

thanks for your answer
for some reason I don't get keyDown message
I suspect that's because of
- (void)webView:(WebView *)sender makeFirstResponder:(NSResponder *) responder
{
[[self window] makeFirstResponder : responder];
}


without that I have different problems

thanks again


On Oct 7, 2006, at 11:25 AM, Alan Smith wrote:

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."

Dmitry Markman

_______________________________________________
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: 
 >delegate question (From: Dmitry Markman <email@hidden>)
 >Re: delegate question (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: Temporarily Hide Window
  • Next by Date: Re: Cocoa Bindings & different nibs
  • Previous by thread: Re: delegate question
  • Next by thread: Core Data with multiple document types?
  • Index(es):
    • Date
    • Thread