Closed prolificcoder closed 9 years ago
I need to edit couple of properties in the plist
plist = CFPropertyList::Binary.new.load(:file =>plist_file) plist.value["prop1"]=true plist.value["prop2"]=true
But after this I am not able to figure out how to save this. Should I create a new CFProperty list and then use it to save?
From the example in the readme file:
plist.save("example.plist", CFPropertyList::List::FORMAT_BINARY)
I need to edit couple of properties in the plist
plist = CFPropertyList::Binary.new.load(:file =>plist_file) plist.value["prop1"]=true plist.value["prop2"]=true
But after this I am not able to figure out how to save this. Should I create a new CFProperty list and then use it to save?