• 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: Determining if it is the first time the application has launched?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining if it is the first time the application has launched?


  • Subject: Re: Determining if it is the first time the application has launched?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 18 Jan 2005 19:50:34 +0100

  hasPreviousRun=false;  // this is a bool that needs defining somewhere.

  if([preferences boolForKey:@"hasPreviouslyRun"]==false){

    // Allow
    hasPreviouslyRun=true;

    // sets it in the NSUserDefaults
    [preferences setObject:@"yes"  forKey:@"hasPreviouslyRun"];
  }

One nifty thing one can do here is if you want your app to show e.g. its revision history window each time a new version is released, like xCode does it*. In that case, you can save the current version number to the plist instead, and if the version number in the plist is older than the current one, you know you've been updated.


Note: Showing the release notes at startup is a bad idea for software for general consumption. Most users shouldn't have to care about the revision history, but for dev tools it's okay, IMHO. Otherwise, it's probably nicer to have a link to the revision history on your download page, or in your Software update app.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
  • Follow-Ups:
    • NSRulerView labels, major tic mark spacing
      • From: Greg Rogers <email@hidden>
References: 
 >Determining if it is the first time the application has launched? (From: Austin Sarner <email@hidden>)
 >Re: Determining if it is the first time the application has launched? (From: James Andrews <email@hidden>)

  • Prev by Date: Re: dismissing one sheet for another problem
  • Next by Date: Assigning a custom formatter to a tablecolum in IB
  • Previous by thread: Re: Determining if it is the first time the application has launched?
  • Next by thread: NSRulerView labels, major tic mark spacing
  • Index(es):
    • Date
    • Thread