• 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: ainxow <email@hidden>
  • Date: Tue, 27 May 2008 18:24:45 -0500


On May 27, 2008, at 6:31 PM, Andy Lee wrote:

On May 27, 2008, at 6:20 PM, Bill Monk wrote:

	NSString *compileDate = [NSString stringWithCString:__DATE__
encoding:NSASCIIStringEncoding];

	NSString *compileTime = [NSString stringWithCString:__TIME__
encoding:NSASCIIStringEncoding];


Any reason not to do the following?

	NSString *compileDate = @__DATE__;

NSString *compileTime = @__TIME__;

You're right. Now why didn't I think of that??? They're preprocessor macros, so of course that works. _______________________________________________


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


  • Prev by Date: Re: Cocoa Classes from C++?
  • Next by Date: Re: Cocoa Classes from C++?
  • Previous by thread: Re: Date compiled?
  • Next by thread: Setting action: with a variable
  • Index(es):
    • Date
    • Thread