• 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: NSDictionary and XML-format property lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary and XML-format property lists


  • Subject: Re: NSDictionary and XML-format property lists
  • From: Ali Ozer <email@hidden>
  • Date: Tue, 19 Jun 2001 09:57:40 -0700

NSWriteOldStylePropertyLists is a default for getting the old behavior in case an app needs to write the old format. This is rare, but might be necessary, so that's why we have it. An app would register this with the value true during its startup; or a user can set it in defaults (with defaults write, probably in a single apps' domain).

As far as getting the new format, yes, the indicated methods now give you the new format. The "description" method is more for debugging, and I believe continues to provide the more human-readable old format for now.

Ali


On Tuesday, June 19, 2001, at 04:06 AM, Bill Cheeseman wrote:

Why doesn't NSDictionary have a 'description...' method named something like
'descriptionInXMLFormat'? I want to save data in XML format rather than the
old style property list format that NSDictionary's 'description' method
returns.

The Mac OS X 10.0 Cocoa release notes say you now get XML format for
property lists using NSDictionary's 'writeToFile:' and 'writeToURL:'
methods. I assume this is true, and I will try it. But the release notes
also refer to a new 'NSWriteOldStylePropertyLists' default value in
connection with this change. I assume this is a constant. But when I use
Project Builder's Find panel to search the Cocoa frameworks for it, I come
up with nothing. Can somebody point me in the right direction?

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA

The AppleScript Sourcebook - www.AppleScriptSourcebook.com
Vermont Recipes - www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >NSDictionary and XML-format property lists (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Further NSWindow and NSWindowController problems
  • Next by Date: Cocoa Hot Keys API
  • Previous by thread: Re: NSDictionary and XML-format property lists
  • Next by thread: NSDocument / window on screen
  • Index(es):
    • Date
    • Thread