• 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
programmatic next key ordering ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

programmatic next key ordering ?


  • Subject: programmatic next key ordering ?
  • From: RFM <email@hidden>
  • Date: Wed, 27 Mar 2002 14:51:32 -0500
  • Organization: RFM & Associates

Hello,

Does anyone know if there is an example available on
programmatically configuring a next key view chain in terms of the x,y
positions of subviews within a view ? I have a view in which the user
can add and remove subviews that have various popups, text fields, etc.
When this happens the next key view chain has to be re-ordered. I
collect all of the subviews to the deepest depth into an array and then
sort the array using a compare function. Once sorted I walk the array
and 'string together' the views next key views. The trick of course is
to be able to sort the views in the array such that they are in the
proper order for tabbing, left->right, top_down, etc. so that when the
user tabs through the next key ordering the correct 'next' view is
selected. Any ideas are greatly appreciated.

Thanks in advance
Regards,
Bob M.
_______________________________________________
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: Re: Verification of a bug
  • Next by Date: Re: Grief with NSDocument windowControllerDidLoadNib
  • Previous by thread: Base transformation of a custom view
  • Next by thread: Re: Was Using OpenSSL and RSA - Blowfish in ObjC and Cocoa
  • Index(es):
    • Date
    • Thread