Seeking advice on best practice for managing visibility of many subviews
Seeking advice on best practice for managing visibility of many subviews
- Subject: Seeking advice on best practice for managing visibility of many subviews
- From: Stuart Malin <email@hidden>
- Date: Wed, 1 Apr 2009 16:47:16 -1000
I have a view that has hundreds of subviews. The user can control
filters which causes different of the subviews to be presented; the
collection of selected-for-presentation subviews are repositioned in
the super view. I can think of two ways to handle this, and am not
sure which is best:
1) remove and add subviews from the super view each time the filter
criteria changes, or
2) leave all views in the super view, and just use -setHidden: to
control whether presented or not.
If the second approach is a better practice, does it matter where the
hidden views are positioned?
TIA.
_______________________________________________
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