Re: [iPhone] Application running for the very first time...
Re: [iPhone] Application running for the very first time...
- Subject: Re: [iPhone] Application running for the very first time...
- From: Alan Duncan <email@hidden>
- Date: Thu, 1 Oct 2009 11:27:12 -0500
Just use a BOOL in your NSUserDefaults ....
On Thu, Oct 1, 2009 at 11:24 AM, James Lin <email@hidden> wrote:
> Can you please elaborate on this a bit more?
>
> I am already using NSUserDefaults for my preferences values.
> But I fail to see how this apply to determining if an Application is
> launched for the very first time...
>
> What do I do?
> Check to see if an NSUserDefault item exists?
>
> Thanks for the help...
>
> James
>
> On 2009/10/1, at 下午5:53, Mark Woollard wrote:
>
> No they aren't - NSUserDefaults is the approach I use for this kind of
>> thing
>>
>> Sent from my iPhone
>>
>> On 1 Oct 2009, at 09:32, Todd Heberlein <email@hidden> wrote:
>>
>> I am wondering if there is a simple way to find out when my application
>>>> is running for the VERY FIRST TIME on an iPhone?
>>>> So that I can set an integer variable once only at this moment...
>>>>
>>>> What's the best way to do this?
>>>>
>>>
>>> Also, NSUserDefaults supports this basic capability. I'm just wondering
>>> if all these defaults for your app are visible from the settings application
>>> on the iPhone (it is too late and my brain is fried); that would screw up
>>> this approach.
>>>
>>> Todd
>>>
>>> _______________________________________________
>>>
>>> Cocoa-dev mailing list (email@hidden)
>>>
>>> Please do not post admin requests or moderator comments to the list.
>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>>
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>>
>>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden