• 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: Shane Stanley <email@hidden>
  • Date: Thu, 11 Mar 2010 09:12:07 +1100
  • Thread-topic: Date pickers

On 11/3/10 2:40 AM, "Deivy Petrescu" <email@hidden> wrote:

> how do I get the weekday of a date

In case you didn't get there already:

  -- get current calendar
  set theCal to current application's NSCalendar's currentCalendar()
  -- use the calendar to get the components from the date
  set theComponents to theCal's components_fromDate_(current application's
NSWeekdayCalendarUnit, zdate)
  log |weekday| of theComponents


> (I thought it was description())

If it's a property, you can leave off the trailing parens. I tend to put
them in so I can tell at a glance that it's a call, not a variable. There's
not a lot of formatting color in ASObjC code...

--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>


 _______________________________________________
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: Deivy Petrescu <email@hidden>
References: 
 >Re: Date pickers (From: Deivy Petrescu <email@hidden>)

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