• 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: Frederick Cheung <email@hidden>
  • Date: Tue, 18 Jan 2005 10:53:54 +0000


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.

Fred

_______________________________________________
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:
    • Re: Determining if it is the first time the application has launched?
      • From: John Stiles <email@hidden>
    • Re: Determining if it is the first time the application has launched?
      • From: daniel <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>)
 >Re: Determining if it is the first time the application has launched? (From: daniel <email@hidden>)

  • Prev by Date: Re: how to save and restore the file in cvs, with original information?
  • Next by Date: Re: Cocoa-dev Digest, Vol 2, Issue 76
  • Previous by thread: Re: Determining if it is the first time the application has launched?
  • Next by thread: Re: Determining if it is the first time the application has launched?
  • Index(es):
    • Date
    • Thread