Re: Preferences file in Tiger
Re: Preferences file in Tiger
- Subject: Re: Preferences file in Tiger
- From: Todd Blanchard <email@hidden>
- Date: Tue, 3 May 2005 19:42:19 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On May 3, 2005, at 8:30 AM, Finlay Dobbie wrote:
On 5/3/05, Shawn Erickson <email@hidden> wrote:
On May 3, 2005, at 7:19 AM, Todd Blanchard wrote:
How is "binary" plist different from "classic" plist (which I
prefer and seemed about as small as you could make it, yet remained
vi friendly)?
...one is in binary and the other is in UTF-8 XML. They are vi
friendly with a simple use of a conversion tool, heck on a Mac OS X
you could use a little piping magic and be done with it.
I think Todd is referring to the pre-XML plist format (used on
NeXTStep and still in some places).
that's the one
A problem I had with it was that
if you wrote out a number, it would come back in as a string.
So now it comes back as an NSNumber? Its not like you'd notice since
to get the actual number you're going to call intValue or floatValue
and this is implemented on both NSString and NSNumber. And either
works with KVC as well. So I don't see the problem/benefit here.
I'm interested in whether int i = 1 is written to the file as "1" or
0x00000001. One is vi friendly and actually text, the other is more
along the lines of what us old and wrinkly developers used to call
"binary".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCeDaLhullemWJdQ8RAmz8AKC5uOpxDQGn6zobdDQjXBCS59aTQgCfU6j5
JJbLCBuxYMVTMaP9m7BzYx8=
=ahl1
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden