Re: NSCalendarDate unarchives from plist as NSCFDate
Re: NSCalendarDate unarchives from plist as NSCFDate
- Subject: Re: NSCalendarDate unarchives from plist as NSCFDate
- From: Wolfgang Ante <email@hidden>
- Date: Wed, 14 May 2003 00:25:22 +0200
I have a preference file that stores an NSCalendarDate object in a
plist file. When I re-read in the file when the object initializes, it
has to perform a category method I defined on NSCalendarDate, but when
it reads the plist in, it is creating a NSCFDate object and not a
NSCalendarDate object. Is this expected behaviour? Is this a bug? Is
this a known bug? If not, i will file a bug.
I had the same problem some weeks ago. I found that an NSCFDate is just
an NSDate (toll-free bridging?). The plist format seems to support
NSDate only (in the plist Editor you are able to create 'date' classes
only, when you dump you get <date>...</date>).
I coded around this by programatically creating an NSCalendarDate from
the NSDate.
If there is a better way I would be happy to corrected.
Bye, Wolfgang :-)
_______________________________________________
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.