Re: Convert kernel AbsoluteTime to a NSDate
Re: Convert kernel AbsoluteTime to a NSDate
- Subject: Re: Convert kernel AbsoluteTime to a NSDate
- From: Matt Burnett <email@hidden>
- Date: Tue, 25 Mar 2008 04:32:20 -0500
Thanks for your reply, but im not sure if this is going to help me. It
seems like the most i could get from that would be the value which
IOHIKeyboard is presently supplying. The following message also says
that it is essentially impossible to do what I want from the kernel.
http://lists.apple.com/archives/darwin-kernel/2005/Jul/msg00124.html
I really need to get it in to a NSDate. At the very least, do you (or
anyone else) know what the reference time is which IOHIKeyboard is
using? It doesnt seem to be 1970.
On Mar 25, 2008, at 4:13 AM, John C. Randolph wrote:
On Mar 25, 2008, at 1:23 AM, Matt Burnett wrote:
I have a KEXT which hooks in to IOHIKeyboard->_keyboardEventAction.
How can i convert the AbsoluteTime (UnsignedWide) I receive to a
NSDate? Thanks!
Try searching for "Using Mach Absolute Time Functions" in the Kernel
programming guide.
-jcr
_______________________________________________
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