• 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: NSUserDefaults question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaults question


  • Subject: Re: NSUserDefaults question
  • From: jerome LAURENS <email@hidden>
  • Date: Fri, 7 Jun 2002 13:49:31 +0200

Le vendredi 7 juin 2002, ` 02:22 AM, John Anderson a icrit :

I think what you want to use here is standardUserDefaults. Make sure you have an identifier set in your bundle settings. You'll typically want to initialize your defaults in the main() function of your application, before any classes get loaded. For example, this is the main() function of my application (Presence):



as documented in the apple doc, defaults defaults should be registered in the +(void)initialize method

a first glance this is more... OOP, each class only declares the defaults that it needs
_______________________________________________
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.
  • Follow-Ups:
    • RE: NSUserDefaults question
      • From: "Jonathan E. Jackel" <email@hidden>
References: 
 >Re: NSUserDefaults question (From: John Anderson <email@hidden>)

  • Prev by Date: Re: Worker threads and UI threads
  • Next by Date: Sharing a class' data
  • Previous by thread: Re: NSUserDefaults question
  • Next by thread: RE: NSUserDefaults question
  • Index(es):
    • Date
    • Thread