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: John Stiles <email@hidden>
- Date: Tue, 18 Jan 2005 10:26:11 -0800
On Jan 18, 2005, at 2:53 AM, Frederick Cheung wrote:
On 18 Jan 2005, at 06:27, daniel wrote:
You probably want to set the preference as a BOOL, since you're
reading it as one:
[preferences setBool:YES forKey:@"hasPreviouslyRun];
It so happens that the NSString @"yes" interpreted as a bool probably
doesn't == 0, but you might as well be sure about it.
Actually it is documented that @"yes" (in upper or lowercase) will
cause boolForKey to return YES.
As long as @"no" works too :)
_______________________________________________
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