• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using NSAppleEventDescriptor with NSDates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Using NSAppleEventDescriptor with NSDates
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Objects cross calls
  • Next by Date: Re: NSSound vs QuickTime
  • Previous by thread: Using NSAppleEventDescriptor with NSDates
  • Next by thread: Re: Using NSAppleEventDescriptor with NSDates
  • Index(es):
    • Date
    • Thread