Re: NSCalendar/NSDate - generating all months/days in a year
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