Environment: iPhone SDK 3.1+
Greetings:
I wish to design a UITabBarController application where each descendent member
of a particular UITabBarItem has access to its regional iVars, stored within
the UITabBarItem.
Hence we could multiple tabs, each having the SAME hierarchy of member view
controllers with their respective regional iVars.
Here's an example:
I've created a NSString var called 'ricString' with some token value, in the
root view controller of a
UINavigationController system/UITabBarItem. I can access this particular iVar
thusly:
(gdb) po [[self navigationController] viewControllers]
<NSCFArray 0x3e5a570>(
<IRMLaunchController: 0x3e25800>,
<IRMSerialNumberSearchController: 0x3e8fcf0>,
<IRMDetailsController: 0x3e90330>
)
(gdb) po [[[[self navigationController] viewControllers] objectAtIndex:0]
ricString]
Hello Ric!
(gdb)
I want to store mutually-shared iVars ("regional" iVars) for each UITabBarItem
to be shared 'regionally'.
What would be the best way to access these iVars from within the hierarchy?
... Or must I drill through the array of View Controllers as I've done?
Regards,
Ric._______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]