• 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
Controlling custom control/view participation in the keyboard loop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controlling custom control/view participation in the keyboard loop?


  • Subject: Controlling custom control/view participation in the keyboard loop?
  • From: Jim Correia <email@hidden>
  • Date: Wed, 23 Aug 2006 16:51:40 -0400

As I'm sure everyone here knows, there are two modes for the keyboard loop:

	- Text boxes and lists only
	- All controls

Suppose I have a custom control which falls into the first category, but isn't a direct descendant of NSTextField or NSTableView. How do I get it to participate in the keyboard loop when full keyboard access is turned off? (Does the answer depend on whether I've subclasses NSView or NSControl?)

What if the situation is reversed? Suppose I have a custom NSTextField that should either

	- only particulate in the keyboard loop in "All controls" mode
	- only become focused on a direct click

(For the sake of this argument, let's ignore the issue of whether this is a good idea HI-wise.)

In the latter case, is returning a conditional value from - acceptsFirstResponder depending on -[NSWindow keyViewSelectionDirection] the right solution?


I have read through:

http://developer.apple.com/documentation/Cocoa/Conceptual/ EventOverview/HandlingKeyEvents/chapter_6_section_5.html#//apple_ref/ doc/uid/10000060i-CH7-SW9

and it didn't seem to cover this topic. Is this documented, and I have not located the docs yet?

Thanks,
Jim
_______________________________________________
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


  • Prev by Date: Re: Strange Warning in initialize method
  • Next by Date: MainMenu.nib - MyDocument.nib bindings question...
  • Previous by thread: Re: NSSQLiteStoreType and remove (REPOST)
  • Next by thread: MainMenu.nib - MyDocument.nib bindings question...
  • Index(es):
    • Date
    • Thread