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

Re: responder chain trouble


  • Subject: Re: responder chain trouble
  • From: Ben Dougall <email@hidden>
  • Date: Tue, 21 Jun 2005 12:24:33 +0100

sorry, forget this -- i've got it working.

On Tuesday, June 21, 2005, at 11:46  am, Ben Dougall wrote:

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
References: 
 >responder chain trouble (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: QT & Cocoa
  • Next by Date: Re: [SOLVED] Window not autosaving to User Defaults
  • Previous by thread: responder chain trouble
  • Next by thread: Why did unmountAndEjectDeviceAtPath fail?
  • Index(es):
    • Date
    • Thread