• 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: Date compiled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Date compiled?
      • From: Jeff LaMarche <email@hidden>
    • Re: Date compiled?
      • From: Jens Alfke <email@hidden>
References: 
 >Date compiled? (From: Jeff LaMarche <email@hidden>)
 >Re: Date compiled? (From: Thomas Davie <email@hidden>)

  • Prev by Date: Re: Cover Flow in Cocoa?
  • Next by Date: Re: File's Owner
  • Previous by thread: Re: Date compiled?
  • Next by thread: Re: Date compiled?
  • Index(es):
    • Date
    • Thread