Re: dateWithCalendarFormat: problem
Re: dateWithCalendarFormat: problem
- Subject: Re: dateWithCalendarFormat: problem
- From: Daniel Hedrick <email@hidden>
- Date: Sat, 25 Jan 2003 01:02:38 -0600
Using the example straight from the NSCalendarDate documentation:
NSCalendarDate *now = [NSCalendarDate calendarDate];
NSString *datestr =
[now descriptionWithCalendarFormat:@"%a %m/%d/%y %I:%M %p"];
[dateField setStringValue:datestr];
I had no problems at all. So, perhaps you could elaborate a little bit
on what you do between:
NSCalendarDate *date = [NSCalendarDate calendarDate];
and:
NSString *myString = [date descriptionWithCalendarFormat:...];
WHat is the string you are passing to the message?
-daniel
On Friday, January 24, 2003, at 08:14 PM, Jeff LaMarche wrote:
Any idea why I would get a "selector not recognized" error when
calling dateWithCalendarFormat: on an NSCalendarDate?
Here's the error message:
*** -[NSCFDate descriptionWithCalendarFormat:]: selector not recognized
The NSCalendarDate was created earlier like this:
NSCalendarDate *date = [NSCalendarDate calendarDate];
and has not been edited or touched by any code...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.