Re: NSDictionary and XML-format property lists
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