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

2008-12-22 Thread Keith Blount
Hi, Many thanks to both of you for your very helpful replies - much appreciated! I've gone with Ken's solution, which works perfectly for what I need. For the sake of the archives, I've attached the method I created based on Ken's code, which just creates a hierarchical dictionary of objects

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

2008-12-22 Thread mmalc Crawford
On Dec 22, 2008, at 8:34 AM, Keith Blount wrote: Hi, Many thanks to both of you for your very helpful replies - much appreciated! I've gone with Ken's solution, which works perfectly for what I need. For the sake of the archives, I've attached the method I created based on Ken's code,

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

2008-12-22 Thread mmalc Crawford
On Dec 22, 2008, at 8:47 AM, mmalc Crawford wrote: There shouldn't be any need, though, to add a month for each iteration, just start a new month with a date components object with a new month number. This could be made a little more efficient (and if you're not using garbage

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

2008-12-22 Thread Keith Blount
(less nasty :) ) methods. Thanks again! Keith --- On Mon, 12/22/08, mmalc Crawford mmalc_li...@me.com wrote: From: mmalc Crawford mmalc_li...@me.com Subject: Re: NSCalendar/NSDate - generating all months/days in a year [SOLVED] To: Cocoa-Dev List cocoa-dev@lists.apple.com Cc: Keith Blount