• 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: NSCalendar/NSDate - generating all months/days in a year
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCalendar/NSDate - generating all months/days in a year


  • Subject: Re: NSCalendar/NSDate - generating all months/days in a year
  • From: "Kenneth Bruno" <email@hidden>
  • Date: Mon, 22 Dec 2008 16:33:38 -0500

On Mon, 22 Dec 2008 12:01:11 -0800, "mmalc Crawford"
<email@hidden> said:
>
> On Dec 22, 2008, at 11:48 AM, Kenneth Bruno wrote:
>
> > Basically, NSCalendarDate gets you pretty much what you need:
> >
> As in a recent message:
>
> "Important: Use of NSCalendarDate strongly discouraged. It is not
> deprecated yet, however it may be in the next major OS release after
> Mac OS X v10.5. For calendrical calculations, you should use suitable
> combinations of NSCalendar, NSDate, and NSDateComponents, as described
> in Calendars in Date and Time Programming Guide for Cocoa."
> <http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSCalendarDate_Class/Reference/Reference.html

You're correct, I saw that just after I posted my solution.  Of course
similar things can be done with NSCalendar, NSDate, et al.

I didn't see the note in the documentation on my computer so it must be
fairly recent.  I guess I'll have to update my documentation.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Cocoa-dev Digest, Vol 5, Issue 2191 (From: "Kenneth Bruno" <email@hidden>)
 >Re: Cocoa-dev Digest, Vol 5, Issue 2191 (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: Drawing in a NSView out side of drawRect
  • Next by Date: Re: C++ instance variables not destructed if NSZombieEnabled
  • Previous by thread: Re: Cocoa-dev Digest, Vol 5, Issue 2191
  • Next by thread: Core DataTableView Column Sort at launch with bindings?
  • Index(es):
    • Date
    • Thread