Re: How do I obtain a TimeStamp
Re: How do I obtain a TimeStamp
- Subject: Re: How do I obtain a TimeStamp
- From: j o a r <email@hidden>
- Date: Thu, 31 Mar 2005 00:37:56 +0200
On 2005-03-31, at 00.29, John Draper wrote:
Throughout my program, I'm going to want to put "time stamps".
How do I do this?
I'm not concerned about the time units at this point, I just need
to know how to do this..
You're probably looking for NSDate. For example:
NSDate *aDate = [NSDate date];
In looking at the Docs, I see that NSEvent has a "timestamp"
method, but how do I get my application's NSEvent reference
to use it?
ie:
time_stamp = [myEvent timestamp];
But how do I get "myEvent" to reference my current event object?
How about:
NSTimeInterval aTimeInterval = [[NSApp currentEvent] timestamp];
...but I'm not sure that you're really looking for "time stamps" from
events. I would bet that you should have a look at the NSDate class.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden