• 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
Creating Plists / How is the <data> value generated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating Plists / How is the <data> value generated?


  • Subject: Creating Plists / How is the <data> value generated?
  • From: "aaron smith" <email@hidden>
  • Date: Sat, 15 Sep 2007 15:11:08 -0700

I'm looking for what is used to generate the <data> values in plist's. For
example. if you check "Open with rosetta" from an Application's "get info".
It puts an entry in com.apple.LaunchServices.plist under
LSPrefsFatApplications. What is it putting in the <data> field?

If you use plutil to convert the file to xml, you'll see some sort of hash.
Where can I find out how that is generated, or some more resources?

I've been doing some research and know that the <data> represents a CFData
object, but what in this case is creating the values in this situation?

I've also figured out that the <data> is base64 encoded. So take this for
example:

<key>org.mozilla.firefox</key>
<array>
<data>
AAAAAACiAAMAAQAAwXGNSQAASCsAAAAAAAAAFgAH3LUAAMGaoMwA
AAAACSD//gAAAAAAAAAA/////wABAAQAAAAWAA4AGAALAEYAaQBy
AGUAZgBvAHgALgBhAHAAcAAPABoADABNAGEAYwBpAG4AdABvAHMA
aAAgAEgARAASABhBcHBsaWNhdGlvbnMvRmlyZWZveC5hcHAAEwAB
LwD//wAA
</data>
</array>

When I bas64 decode this I'm getting this:

<quote>
¢  à q IH+  Üµà š Ì        ÿþÿÿÿÿ      Firefox.app   Macintosh
HD  Applications/Firefox.app  /ÿÿ
</quote>

So I need some help figuring out what else is a factor when these data
values are first created.

I've also been having a hunch that possibly the data is the contents of an
alias record or AliasHandle?

Any ideas would be awesome!!!!!
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Creating Plists / How is the <data> value generated?
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: problem with date
  • Next by Date: can reverse page order printing be done programmatically?
  • Previous by thread: Re: problem with date
  • Next by thread: Re: Creating Plists / How is the <data> value generated?
  • Index(es):
    • Date
    • Thread