Re: iOS when is my app launched
Re: iOS when is my app launched
- Subject: Re: iOS when is my app launched
- From: Jason Bobier <email@hidden>
- Date: Wed, 8 Dec 2010 08:38:54 -0500
Hey Dave,
I'm talking about the Carbon equivalent of processLaunchDate in the ProcessInfoExtendedRec. This is the actual date & time that the process launched.
I want to use it to give my game's splash screen a consistent amount of time on screen. Here's how:
I set the Default.png to the splash screen and immediately show the same image when my app launches. I then check the launch date to determine how much time it has shown and add x number of seconds to that.
I know that this information is available via the ps command, so I could just resort to that, but I was hoping for a nice, clean, api way of doing it.
Thanks,
Jason
On Dec 8, 2010, at 3:57 AM, Dave Keck wrote:
>> How do I find the date and time when my application launched? I've done this before on OS X, but it was a while ago and I've forgotten how. :)
>
> I'm not sure what you mean exactly, but [NSDate date] will return the
> current date/time. Tuck that instance in memory when your application
> launches and you'll have that information for later, or alternatively
> store it to disk using NSKeyedArchiver.
_______________________________________________
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