• 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: Date pickers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date pickers


  • Subject: Re: Date pickers
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 08 Feb 2010 21:48:46 -0500

On 08/02/2010, at 21:26 , Shane Stanley wrote:

> On 9/2/10 12:53 PM, "Deivy Petrescu" <email@hidden> wrote:
>
>> where "2010-01-01 00:00:00 -0500" is the date that I want to capture.
>
> You can use "theNSDate's description()" to get that. The question, though,
> is what do you intend to do with it?
>
> --
> Shane Stanley <email@hidden>
> AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
>

I want to use it both as an Applescript date and as a string date (say 02/08/10 or 08/02/10 for instance).
Where did you get this call, description()?
I am just starting with Xcode in general and I've been drilling to find these "methods".

OK, I found it.

It is just to much to look for...   :(

But I am still having problems.
Here is the piece of code that is giving me problems

set zdate to (what_date's dateValue())
set zdate to zdate's | description() |  -- description is an app keyword

That is the error:


2010-02-08 21:44:35.808 OpenApp_Test[6666:a0f] Exception detected while handling key input.
2010-02-08 21:44:35.809 OpenApp_Test[6666:a0f] [<__NSCFDate 0x2005a7360> valueForUndefinedKey:]: this class is not key value coding-compliant for the key  description() .



So, what did I do wrong?


Thanks again.
Deivy Petrescu
email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Date pickers
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Date pickers (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Date pickers
  • Next by Date: Re: Date pickers
  • Previous by thread: Re: Date pickers
  • Next by thread: Re: Date pickers
  • Index(es):
    • Date
    • Thread