• 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
[NSDate +dateWithNaturalLanguageString] question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSDate +dateWithNaturalLanguageString] question


  • Subject: [NSDate +dateWithNaturalLanguageString] question
  • From: Jamie Phelps <email@hidden>
  • Date: Sun, 13 Jul 2008 10:44:44 -0500

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 "four months from today" but it just returns the current date each time. Here are the strings I have tried:

"in four months"
"four months from now"
"four months from today"

I also tried the same strings in -awakeFromInsert to no avail.

This is on Leopard so perhaps it behaves differently than in Tiger? If anyone has an idea or direction to where I could find a list of acceptable strings, I'd greatly appreciate it.

Thanks!
JP
_______________________________________________

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


  • Follow-Ups:
    • Re: [NSDate +dateWithNaturalLanguageString] question
      • From: Jamie Phelps <email@hidden>
  • Prev by Date: Re: Design Question: Where to observe using KVO?
  • Next by Date: Responder Chain Patching
  • Previous by thread: Re: Remove overlap on NSBezierPath
  • Next by thread: Re: [NSDate +dateWithNaturalLanguageString] question
  • Index(es):
    • Date
    • Thread