I want to read i simple plist file like this bellow and put it in the textfield…
Can anyone point me a direction how to ?
With xml parse i get error,i need something more advance from that ?
the plist file
[code]<?xml version="1.0" encoding="UTF-8"?>
country
im
date
2014-02-10T23:39:25Z
description
3FM Isle of Man
keywords
fm three news talk isle of man
languages
english
mediaDescription
Adult Contemporary, Community
mediaURL
http://istream.three.fm:8000/live
type
SingleStaticBackend
[/code]
there is 2 ways to open a binary plist.
1: Is xcode
2: putil from command line.
here is the code i have use if anyone want.
[code] Dim tFiles as FolderItem
tFiles = SpecialFolder.Desktop.Child(“source”)
sDir = tFiles
Dim dest as FolderItem
dest =SpecialFolder.Desktop.Child(“destination”)
dim u As Integer = sDir.Count
for i As Integer = 1 to u
if sDir.Item(i).NativePath = "ds_store" then
else
Dim sh as new Shell
//Putil execution
sh.Execute (“plutil -convert xml1”)+" " +sDir.Item(i).ShellPath
If sh.ErrorCode = 0 Then
sDir.Item(i).CopyFileTo(dest)
[quote=225824:@Loannis Kolliageorgas]there is 2 ways to open a binary plist.
[/code][/quote]
One correct way - use the CFPreferences classes either in MacOSLIb or MBS