Re: Using NSAppleEventDescriptor with NSDates
Re: Using NSAppleEventDescriptor with NSDates
- Subject: Re: Using NSAppleEventDescriptor with NSDates
- From: Matt Neuburg <email@hidden>
- Date: Mon, 23 Jan 2006 10:15:04 -0800
- Thread-topic: Using NSAppleEventDescriptor with NSDates
On Fri, 20 Jan 2006 16:32:11 +0000, Mike Abdullah <email@hidden>
said:
>Does anyone know if it's possible to use NSAppleEventDescriptor with
>an NSDate?
>
>I can easily do [NSAppleEventDescriptor descriptorWithString: ] to
>create an event descriptor from a string, and the same goes for
>integers, but I see no way of doing things with dates!
>
>There is [NSAppleEventDescriptor
>descriptorWithDescriptorType:data: ] Would that work if I could find
>the descriptor type for dates? (Thus far I've looked and haven't been
>able to!)
Hint: An 'ldt ' (note the space) is a LongDateTime, which is a signed 64-bit
integer representing the number of seconds since the start of 1904. You may
find the utilities on this page helpful:
<http://developer.apple.com/documentation/Carbon/Reference/Date_Time_an_nt_U
tilities/index.html>
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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