• 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: making a custom view not grab the keyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making a custom view not grab the keyboard


  • Subject: Re: making a custom view not grab the keyboard
  • From: Andy Lee <email@hidden>
  • Date: Tue, 27 Mar 2007 18:05:20 -0400

On Mar 27, 2007, at 5:46 PM, Artemiy Pavlov wrote:
I assumed the parent of this view is the view factory, but overriding these methods for it did not help. I guess I need to "contact" the parent window somehow, and give it the focus. Or, contact the mainBundle (is it the host app itself?) and tell it to grab the keyboard back... Any ideas?

Can you make a very small project that demonstrates the problem, and post it?


How do you know your view is grabbing the keyboard -- is it reflected in the display, or are you assuming so because the host window does *not* get keyboard events?

Have you confirmed that your overrides of -canBecomeKeyView and - acceptsFirstResponder are actually getting called, perhaps with NSLog statements?

--Andy


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: making a custom view not grab the keyboard (From: "E. Wing" <email@hidden>)
 >Re: making a custom view not grab the keyboard (From: Artemiy Pavlov <email@hidden>)
 >Re: making a custom view not grab the keyboard (From: Daniel Jalkut <email@hidden>)
 >Re: making a custom view not grab the keyboard (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Drawing to a PDF Context
  • Next by Date: Re: order of KVO notification
  • Previous by thread: Re: making a custom view not grab the keyboard
  • Next by thread: Re: making a custom view not grab the keyboard
  • Index(es):
    • Date
    • Thread