Re: Determining if it is the first time the application has launched?
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