• 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: Preferences file in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Preferences file in Tiger (From: "Pradeep Kumar" <email@hidden>)
 >Re: Preferences file in Tiger (From: Ali Ozer <email@hidden>)
 >Re: Preferences file in Tiger (From: Todd Blanchard <email@hidden>)
 >Re: Preferences file in Tiger (From: Shawn Erickson <email@hidden>)
 >Re: Preferences file in Tiger (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: NSWorkspace question
  • Next by Date: Re: Preferences file in Tiger
  • Previous by thread: Re: Preferences file in Tiger
  • Next by thread: Re: Preferences file in Tiger
  • Index(es):
    • Date
    • Thread