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"?>
3FM Isle of Man
fm three news talk isle of man
Adult Contemporary, Community
Be aware that lots of plists are not textual but are binary
You wont be able to do anything with them using the XML reader
Don’t use an xml parser for this. Either use MacOSLib (https://github.com/macoslib/macoslib) or the Monkeybread plugins.
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
dim u As Integer = sDir.Count
for i As Integer = 1 to u
if sDir.Item(i).NativePath = "ds_store" then
Dim sh as new Shell
sh.Execute (“plutil -convert xml1”)+" " +sDir.Item(i).ShellPath
If sh.ErrorCode = 0 Then
MsgBox("Error: " + Str(sh.ErrorCode))
to convert it again as binary is
plutil -convert binary1
[quote=225824:@Loannis Kolliageorgas]there is 2 ways to open a binary plist.
One correct way - use the CFPreferences classes either in MacOSLIb or MBS