Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-06-2008, 09:02 PM   #1 (permalink)
Registered Member
 
Imagine09's Avatar
 
Join Date: Aug 2008
Posts: 110
Default dateWithNaturalLanguageString

I am hoping someone may be able to tell me what I am doing wrong to generate the following...

"warning: 'NSDate may not respond to "dateWithNaturalLanguageString:"

when I use this code:

HTML Code:
[NSDate dateWithNaturalLanguageString:@"January 1, 2008"];
I also use this code inside an NSArray...

Thanks for any help on this
Imagine09 is offline   Reply With Quote
Old 10-06-2008, 11:47 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default

Not sure - out of curiosity, is it working? This method is actually declared in a category on NSDate, it is contained in the header file NSCalendarDate.h, not in the NSDate.h header file.

If you've done:

Code:
#import <UIKit/UIKit.h>
It's possible the compiler is never seeing NSCalendarDate.h. You can most likely suppress the warning by doing either:

Code:
#import <Foundation/Foundation.h>
or
Code:
#import <Foundation/NSCalenderDate.h>
Or, if it's working, you can just leave it as is; it's just a warning.
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Old 01-04-2011, 02:59 PM   #3 (permalink)
Registered Member
 
Imagine09's Avatar
 
Join Date: Aug 2008
Posts: 110
Default

Bump...

I am hoping someone may be able to tell me what I am doing wrong to generate the following...

"warning: 'NSDate may not respond to "dateWithNaturalLanguageString:"

when I use this code:

HTML Code:
[NSDate dateWithNaturalLanguageString:@"January 1, 2008"];
I also use this code inside an NSArray...

Thanks for any help on this
Imagine09 is offline   Reply With Quote
Old 01-04-2011, 03:19 PM   #4 (permalink)
Super Moderator
 
Join Date: Oct 2009
Location: San Diego, CA
Posts: 1,578
Default

The documentation says this should only work on MAC OSX. I don't think it's available in iOS.
JasonR is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 327
22 members and 305 guests
@sandris, ADY, BrianSlick, dacapo, Dani77, djohnson, dre, HDshot, HemiMG, JasonR, MarkC, mer10, nibeck, prchn4christ, ryandb2, spiderguy84, themathminister, timle8n1, tomtom100, vogueestylee, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,883
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, vvenkatachallam
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:08 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0