• 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: how do I determine if this is the first time the app is launched?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do I determine if this is the first time the app is launched?


  • Subject: Re: how do I determine if this is the first time the app is launched?
  • From: Todd Ransom <email@hidden>
  • Date: Sun, 25 Jun 2006 22:16:15 -0600

If you just want some default values for your app's preferences, look at -[NSUserDefaultsController setInitialValues]. You can build a dictionary of defaults and set it in your app delegate's +initialize.

Todd Ransom
Return Self Software
http://returnself.com



On Jun 24, 2006, at 4:53 PM, Alan Smith wrote:

I tried checking if the preference file existed but apparently but by
the time it awakeFromNib it is there. I need to add some things to the
defaults so that the rest of my app can use them. I also don't want to
overwrite them every time is launches, that would defeat the purpose.

Thanks, Alan
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >how do I determine if this is the first time the app is launched? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: Unicode strings in ppc and intel
  • Next by Date: Re: If Functions
  • Previous by thread: Re: how do I determine if this is the first time the app is launched?
  • Next by thread: Removing all objects in NSTreeController
  • Index(es):
    • Date
    • Thread