• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IB xib and toolbar not building properly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB xib and toolbar not building properly


  • Subject: Re: IB xib and toolbar not building properly
  • From: email@hidden
  • Date: Thu, 2 Dec 2010 21:43:32 -0700

from observation ...

when items are removed the toolbar state is written to user defaults and this state determines the toolbar configuration on the next program run.

so, should I remove the NSToolbar entry from user defaults at terminate time so the items will appear on next run?

is this the Cocoa way or should something else be done?

-koko


On Dec 2, 2010, at 9:34 PM, John Joyce wrote:


On Dec 3, 2010, at 1:15 PM, email@hidden 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@hidden)

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@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


  • Follow-Ups:
    • Re: IB xib and toolbar not building properly
      • From: John Joyce <email@hidden>
References: 
 >Re: IB xib and toolbar not building properly (From: John Joyce <email@hidden>)

  • Prev by Date: Using MAPM with Cocoa/ObjectiveC
  • Next by Date: Re: Using MAPM with Cocoa/ObjectiveC
  • Previous by thread: Re: IB xib and toolbar not building properly
  • Next by thread: Re: IB xib and toolbar not building properly
  • Index(es):
    • Date
    • Thread