Author Topic: UIToggle component Group variable management.  (Read 1582 times)

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
UIToggle component Group variable management.
« on: March 24, 2014, 02:07:18 PM »
I am using quite a lot of UIToggle components in my app and running into an issue of managing the Group variable.  For example, I have created groups 1- 10.  When the app is running, other UIToggle comps are dynamically created.  As the app grows, it's  a bit too much to have to keep track of which group number belongs to which UIToggle comp.

Would be great if there were an option in the UIToggle comp to specify the parent GO that this UIToggle comp belongs to.  This way, I can create a dummy GO to hold all of the children UIToggle comps and do not have to worry about the group number.   

Having to specify a group number is like a global variable which we have to manage.  Using the parent-child relationship creates automatic containment and therefore no need to worry about which numbers to assign.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIToggle component Group variable management.
« Reply #1 on: March 24, 2014, 03:46:58 PM »
Do you have all those toggle groups active at the same time? Because that's the only reason you'd need to have multiple groups.

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Re: UIToggle component Group variable management.
« Reply #2 on: March 24, 2014, 09:54:07 PM »
I currently have 5 tabs, each tab contains contains multiple scrollviews, each scrollview contains items that contains UIToggles.  More functionality will be added in the future which will require more and more UIToggles and it would be quite a a memory trick to manage all of these groups.