• 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: Property lists: CFPropertyList docs vs. Foundation docs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Property lists: CFPropertyList docs vs. Foundation docs


  • Subject: Re: Property lists: CFPropertyList docs vs. Foundation docs
  • From: Rosyna <email@hidden>
  • Date: Wed, 17 Apr 2002 03:28:22 -0700

Ack, at 4/17/02, Mason Mark said:

Can anybody definitively clarify? The reason I want to know is that I wrote a bunch of code a while back where I assumed (incorrectly it seems) that NSDate and NSNumber were supported property list types for using with NSDictionary. I think I misremembered this detail, and was thinking of the documentation for CFDictionary.

You might want to look at the NSUserDefaults documentation instead:

file:///Developer/Documentation/Cocoa/TasksAndConcepts/ProgrammingTopics/UserDefaults/Tasks/UsingDefaults.html

"Recall that a default's value can be only an NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary"

This is the same for all property lists.

Anyway, I want to bring that code into a current project, so I started updating it. But it does seem to work fine--that is, the dictionaries seem to read/write to/from disk without problems even when they contain NSNumber and NSDate objects.

However, this is contrary to the NSDictionary documentation, so I was planning to update the code anyway, just to be safe (and encode/decode the NSNumber and NSDate objects myself). However, I don't want to bother with doing this if I don't need to, so I want to be certain.

If anybody who really knows could clarify, I'd appreciate it.

Thanks,

it does seem the NSDictionary documentation is outdated (see writeToFile:atomically: and writeToURL:atomically:)
--


Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People
---

Please include any previous correspondence in replies, it helps me remember what we were talking about. Thanks. _______________________________________________
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: 
 >Property lists: CFPropertyList docs vs. Foundation docs (From: Mason Mark <email@hidden>)

  • Prev by Date: Re: Using Carbon in Cocoa App
  • Next by Date: Drag and Drop in a NSView:Mouse coordinates
  • Previous by thread: Property lists: CFPropertyList docs vs. Foundation docs
  • Next by thread: Re: Using Carbon in Cocoa App
  • Index(es):
    • Date
    • Thread