• 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: Saving State of App menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving State of App menu


  • Subject: Re: Saving State of App menu
  • From: Jonathan Jackel <email@hidden>
  • Date: Sat, 13 Dec 2003 17:26:16 -0500

Check out NSUserDefaults.

Jonathan

On Dec 12, 2003, at 8:45 PM, Mike Chambers wrote:

I have a simple app with a menu item titled "Always on Top". If the user selects the item, then app window will always be above other windows.

I would like to save the state of the menu item so that the next time the app starts, the menu is the same as when it was close.

Are there any APIs that support this? Or should I just manually store the state somewhere when the app closes, and then read it when it open back up.

I apologize if this is a super basic question. I am just learning cocoa, and couldn't find info searching on google.

mike c
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Panther text shadows flip in NSImage... (From: Steve Mykytyn <email@hidden>)
 >Saving State of App menu (From: Mike Chambers <email@hidden>)

  • Prev by Date: textview highlighting
  • Next by Date: Custom nsvaluetransformers
  • Previous by thread: Saving State of App menu
  • Next by thread: http proxy config
  • Index(es):
    • Date
    • Thread