programmatic next key ordering ?
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.