• 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
Re: NSCalendarDate unarchives from plist as NSCFDate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSCalendarDate unarchives from plist as NSCFDate (From: Greg Hulands <email@hidden>)

  • Prev by Date: Project Windows open in Wrong Position, wrong screen
  • Next by Date: Re: A nice Cocoa success story..
  • Previous by thread: NSCalendarDate unarchives from plist as NSCFDate
  • Next by thread: Open the mail reader to send a mail
  • Index(es):
    • Date
    • Thread