Re: Date compiled?
Re: Date compiled?
- Subject: Re: Date compiled?
- From: Uli Kusterer <email@hidden>
- Date: Tue, 27 May 2008 17:48:12 +0200
Am 27.05.2008 um 16:19 schrieb Thomas Davie:
On 27 May 2008, at 15:52, Jeff LaMarche wrote:
Is there any easy way to grab at runtime the date that my
application was last built? I've got a request by a client to show
this in the about box. It seems like I should be able to just get
the modified date of the application bundle, but I wanted to see if
there was a "correct" way of doing this.
Thanks,
Jeff
I think the most correct way to do this would be to use the __DATE__
and __TIME__ macros.
You'll need a shell script build phase that does a 'touch' on that
header, though. Since the header hasn't changed, it will otherwise not
be recompiled, and in turn you'll have the old date in your build. If
you do that, you might as well just create a shell script that writes
the header anew each time, which gives you full control over the date
format.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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