• 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
CoreData Date Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CoreData Date Problems
      • From: John Timmer <email@hidden>
  • Prev by Date: Re: HTTP extensions to NSMutableURLRequest erroneously modify headers
  • Next by Date: Re: CoreData Date Problems
  • Previous by thread: Re: Performance issue : NSDictionary against NSXMLNode and NSXMLParser
  • Next by thread: Re: CoreData Date Problems
  • Index(es):
    • Date
    • Thread