• 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:] on iPhone 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSDate dateWithNaturalLanguageString:] on iPhone 3.0


  • Subject: [NSDate dateWithNaturalLanguageString:] on iPhone 3.0
  • From: Jason Brennan <email@hidden>
  • Date: Thu, 27 Aug 2009 17:47:52 -0300

In the Documentation for NSDate on iPhone OS 3.0, in the overview section -dateWithNaturalLanguageString:locale: is mentioned, but is not documented elsewhere on the page. When I attempt to use - dateWithNaturalLanguageString: I get a warning that the method can't be found. However, it still functions properly. But I'm guessing it's considered undocumented/private and therefor not a good idea to use. Is this OK to use?

If not, I'm trying to replace this code

NSDate *today = [NSDate dateWithNaturalLanguageString:@"today at 23:59:59"];
NSDate *tomorrow = [NSDate dateWithNaturalLanguageString:@"tomorrow at 23:59:59"];
With something suitable for iPhone OS 3.0, but I'm at a complete loss. Basically I want a date which is "tonight just a second before midnight" and another time "just a second before midnight tomorrow night"


Thanks in advance,
Jason Brennan.

*************************
NSDate documentation for iPhone:
http://developer.apple.com/IPhone/library/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html
_______________________________________________

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:] on iPhone 3.0
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Right-to-Left / Bidi / Arabic / Hebrew support in my app
  • Next by Date: Agent application will not pop up menu on mouse movement
  • Previous by thread: Re: Right-to-Left / Bidi / Arabic / Hebrew support in my app
  • Next by thread: Re: [NSDate dateWithNaturalLanguageString:] on iPhone 3.0
  • Index(es):
    • Date
    • Thread