Re: Finding a relative date

2008-02-26 Thread Deborah Goldsmith
I did find myself still using NSCalendarDate because I wanted its - dayOfYear method. I wasn't worried about localization because my application is used by exactly one user in the middle of a cornfield in SW Michigan. But if someone knows, what is the way to get this with NSCalendar? I found

Re: Finding a relative date

2008-02-26 Thread Paul Bruneau
I am sympathetic to using NSCalendar. At his Boot Camp, Aaron told me that NSCalendarDate was falling out of favor because it's not a good player regarding calendars other than Gregorian. I understand this. However, the documentation really doesn't provide any direction as to this for a new

Re: Finding a relative date

2008-02-25 Thread Deborah Goldsmith
Please don't use NSCalendarDate, as it only supports the Gregorian calendar. Please use NSCalendar instead, unless you still need to run on 10.3.x. Deborah Goldsmith Apple Inc. [EMAIL PROTECTED] On Feb 25, 2008, at 11:39 AM, Nir Soffer wrote: On Feb 25, 2008, at 21:27, Randall Meadows wro

Re: Finding a relative date

2008-02-25 Thread Nir Soffer
On Feb 25, 2008, at 21:27, Randall Meadows wrote: Given a specific NSDate, I need to be able to find, say, the Sunday before that date, or the Saturday after that date. I was hoping to be able to use +dateWithNaturalLanguage with something like "Sunday before [myDate description]", but th

Re: Finding a relative date

2008-02-25 Thread Nick Zitzmann
On Feb 25, 2008, at 12:27 PM, Randall Meadows wrote: Given a specific NSDate, I need to be able to find, say, the Sunday before that date, or the Saturday after that date. I was hoping to be able to use +dateWithNaturalLanguage with something like "Sunday before [myDate description]", but

Finding a relative date

2008-02-25 Thread Randall Meadows
Given a specific NSDate, I need to be able to find, say, the Sunday before that date, or the Saturday after that date. I was hoping to be able to use +dateWithNaturalLanguage with something like "Sunday before [myDate description]", but that just returns myDate. I know I can brute-force it