• 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
Shift-tab in window not working correctly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shift-tab in window not working correctly?


  • Subject: Shift-tab in window not working correctly?
  • From: Duncan Champney <email@hidden>
  • Date: Tue, 22 Jan 2008 15:38:20 -0500

I have a window in my application with a number of input NSTextFields. The intialFirstResponder is set to the first text field, and nextKeyView for each field points to the next, and the last one points back to the first, as normal.

The form was created using the version of IB in XCode 2.x (2.4 I think), and I have since moved to XCode 3.0. I'm still building my app for OS 10.4. I'm not using any of the 10.5 extensions.

My program enables and disables some of the fields depending on the setting of other fields on the form. When it is initially displayed, the first field, "anchor value", is disabled. Cocoa automatically sets the intitialFirstResponder to the second field, just like I'd expect it to.

Tabbing forwards through the fields in my form works as expected. However, if I shift tab through the fields, it stops at my second field. It looks like the backwards link from that field to the previous field is getting broken somehow. I'm guessing that this has something to do with my app disabling the first field when the form is displayed initially.

Is there some housekeeping I need to do when I enable/disable editable text fields in order to keep the forward and backward links (each field's "nextKeyView) set up correctly?



Duncan Champney
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Shift-tab in window not working correctly?
      • From: Keary Suska <email@hidden>
  • Prev by Date: Connect to Server smb path containing :139 resets / kills Finder
  • Next by Date: Re: App-specific URLs and the pasteboard. Need help.
  • Previous by thread: Re: Connect to Server smb path containing :139 resets / kills Finder
  • Next by thread: Re: Shift-tab in window not working correctly?
  • Index(es):
    • Date
    • Thread