• 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
responder chain trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

responder chain trouble


  • Subject: responder chain trouble
  • From: Ben Dougall <email@hidden>
  • Date: Tue, 21 Jun 2005 11:46:29 +0100

there's one NSTextField on the window. when the window first opens the text field isn't active, which is how i want it, but i'd like it to become active on tab press, which i can't get to work at the moment. (when the text field is being edited, tab deselects the text field fine, so it's just the situation when nothing's active and pressing tab to activate the text field). when tab is pressed i can see (having put in an NSLog in respondsToSelector in NSWindow's subclass) that - (void)selectNextKeyView:(id)sender is called when nothing's selected and tab is pressed. i've tried putting many different things in selectNextKeyView: but none work. some made it crash.

how can i make the NSTextField become active on tab press (when nothing else is active), but not active when the window initially appears?

thanks, ben.

_______________________________________________
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: responder chain trouble
      • From: Ben Dougall <email@hidden>
  • Prev by Date: Re: Xcode 2.1 debugging
  • Next by Date: Re: NSAppleScript unicode issue
  • Previous by thread: Re: Xcode 2.1 debugging
  • Next by thread: Re: responder chain trouble
  • Index(es):
    • Date
    • Thread