On Dec 3, 2010, at 1:15 PM, [email protected] wrote: > I programatically removed some toolbar items based on a state of the program. > > I quit the program. > > I ran the program again with the state set to not remove the toolbar items. > > The items remained removed ! > > They are in the toolbar in the xib. > > I have cleaned the project and rebuilt and removed the code to remove the > items suspecting that perhaps the sate was incorrect. > > The items are still not displayed. > > Is there some hidden toolbar reference ? > > -koko > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > If you use NSUserDefaults to store the state, it will keep it that way on the next launch. So you also need to consider what state to have on launch. Default? Last state before Quit? Generally, maintaining last user-chosen state between launches is a good idea.
_______________________________________________ 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]
