Creating Plists / How is the <data> value generated?
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