CoreData Date Problems
CoreData Date Problems
- Subject: CoreData Date Problems
- From: Andrew Sage <email@hidden>
- Date: Wed, 27 Jul 2005 12:44:25 +0100
I have an attribute that is of type date.
I am trying to use the following code to convert the date into a
NSCalendarDate from the results of a NSFetchRequest:
NSManagedObject* aTask = [results ObjectAtIndex:loop];
NSCalendarDate* thisDate = [aTask valueForKey:@"dueDate"];
NSLog([thisDate descriptionWithCalendarFormat:@"%a %m/%d/%y %I:%M %p"]);
When I try to use the thisDate object I get the following error:
-[NSCFDate descriptionWithCalendarFormat:]: selector not recognized
[self = 0x502ff90]
String values can be extracted from the attribute without any problems.
The entry in the XML for it looks like this:
<attribute name="duedate" type="date">144111600.00000000000000000000</
attribute>
Any ideas?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden