Missing functionality: plist read/write
Reported by Mala | September 15th, 2008 @ 09:48 PM
Everything is in title. ;)
Add initWithContentsOfURL:, initWithContentsOfFile:, writeToFile:atomically: and writeToURL:atomically: in CPArray and CPDictionary would be very useful.
Comments and changes to this ticket
-
Farcaller February 4th, 2009 @ 12:20 AM
initWithContentsOfURL implemented for CPDictionary in the attached patch. I suppose there's no use for initWithContentsOfFile in cappuccino, tell me if I'm wrong.
-
Ross Boucher March 24th, 2009 @ 11:09 PM
- Tag changed from cparray, cpdictionary, plist to @new-features, @working-on, cparray, cpdictionary, patch, plist
We could just alias initWithContentsOfFile to initWithContentsOfURL. Is there a reason for puting the logic in the class method rather than the init?
It would be great to see this finished up for CPArray, and with the writeTo methods (which should just send a PUT request to the URL with the contents of the plist as the body.
It would also be interesting to see asynchronous versions of these, since synchronous requests are, generally, a terrible idea in the browser.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.