Re: Date compiled?
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