Re: Using NSAppleEventDescriptor with NSDates
Re: Using NSAppleEventDescriptor with NSDates
- Subject: Re: Using NSAppleEventDescriptor with NSDates
- From: Mike Abdullah <email@hidden>
- Date: Tue, 24 Jan 2006 11:33:25 +0000
OK, thanks Matt, I'll look into that. In the meantime, I am getting
round this by breaking my date down into integers representing year,
month, day and seconds since midnight. Then passing this lot as a
listDescriptor.
Mike.
On 23 Jan 2006, at 18:15, Matt Neuburg wrote:
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