• 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
initialFirstResponder and nextKeyView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

initialFirstResponder and nextKeyView


  • Subject: initialFirstResponder and nextKeyView
  • From: Tobias Hermann <email@hidden>
  • Date: Tue, 13 May 2003 22:02:49 +0200

hi!

I have a hopefully easier question refering to the same problem (the last mail was "keyview madness").

I searched in the achives of this list and found out, that NSView's nextKeyView has no effect until the window's initialFirstResponder is set.
I experimented a bit and can confirm this.

Now the question:
Somehow a next/previous valid keyView is found anyway (although if you have NOT set the initialFirstResponder), because the key focus cycles through the controls from the top left to the bottom right as you press tab/shift-tab.

I wonder HOW this is done. I think NSView's nextValidKeyView and previousValidKeyView are invoked anyhow, but how do they find their previous/next views? Do they walk through all views and find the nearest or so ?

The reason for asking that question is: I want to alter the default behaviour (I want some controls appearing NOT in the key view loop, although they might get firstResponder), even when I didn't set the initialFirstResponder.

Any hints?

Thanx!!

Tobi
_______________________________________________
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: Project Builder ate my code
  • Next by Date: Re: Parse Apple's .dmg file
  • Previous by thread: Re: Project Builder ate my code
  • Next by thread: Re: NSOpenPanel issue
  • Index(es):
    • Date
    • Thread