Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Deborah Goldsmith
On Jul 13, 2008, at 10:34 PM, Charles Srstka wrote: What I don't get is why there can't just be a +dateWithYear:month:day:hour:minute:second:timeZone:calendar: method to replace the current +dateWithYear:month:day:hour:minute:second:timeZone: one instead of having to deal with three differ

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Charles Srstka
On Jul 13, 2008, at 7:47 PM, Deborah Goldsmith wrote: The Thai, Hebrew, and Islamic calendars are quite important in the software market, and there is one other that Jens didn't mention: the Japanese calendar. The Japanese era system is heavily used in Japan: http://en.wikipedia.org/wiki/Ja

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Deborah Goldsmith
On Jul 13, 2008, at 8:34 PM, Nick Zitzmann wrote: What's the NSCalendar identifier for the Thai calendar? I don't see one documented in the NSLocale docs. NSBuddhistCalendar Deborah Goldsmith Apple Inc. [EMAIL PROTECTED] ___ Cocoa-dev mailing list

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Nick Zitzmann
On Jul 13, 2008, at 6:47 PM, Deborah Goldsmith wrote: Mac OS X 10.5 supports Gregorian, Japanese, Thai, Hebrew, and Islamic (two kinds) calendars. What's the NSCalendar identifier for the Thai calendar? I don't see one documented in the NSLocale docs. Nick Zitzmann

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Deborah Goldsmith
The Thai, Hebrew, and Islamic calendars are quite important in the software market, and there is one other that Jens didn't mention: the Japanese calendar. The Japanese era system is heavily used in Japan: http://en.wikipedia.org/wiki/Japanese_era_name While the months and days of the Japanes

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Phil
On Jul 13, 2008, at 2:50 PM, Jens Alfke wrote: On 13 Jul '08, at 10:52 AM, Phil wrote: I'd really like to understand what *common* modern uses there are for non-Gregorian calendars Are you serious? A large fraction of the world's population uses other calendars. From the Wikipedia entry

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Jens Alfke
On 13 Jul '08, at 10:52 AM, Phil wrote: I'd really like to understand what *common* modern uses there are for non-Gregorian calendars Are you serious? A large fraction of the world's population uses other calendars. From the Wikipedia entry "Calendar": While the Gregorian calendar is wid

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Phil
On Jul 13, 2008, at 12:05 PM, Keith Duncan wrote: The problem is that NSCalendarDate uses the gregorian calendar exclusively I must be out of the loop on the population of developers and/or users complaining about this. If the issue is the reliance on the Gregorian calendar, where's the

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Keith Duncan
I worked it out using NSCalendarDate [...] From the docs: 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,

Re: [NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Jamie Phelps
Well, I worked it out using NSCalendarDate's - dateByAddingYears:months:days:hours:minutes:seconds: but I'd still be curious as to why the natural language I was trying to use didn't work... JP On Jul 13, 2008, at 10:44 AM, Jamie Phelps wrote: Hi, all. I searched the archives regarding thi

[NSDate +dateWithNaturalLanguageString] question

2008-07-13 Thread Jamie Phelps
Hi, all. I searched the archives regarding this method and didn't find anything applicable. Sorry if this has been covered. Is there some list of acceptable strings for +dateWithNaturalLanguageString:? I am trying to set my Core Data entity's expirationDate attribute's default value to "fou