Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Missing functionality: plist read/write

#42

Everything is in title. ;)

Add initWithContentsOfURL:, initWithContentsOfFile:, writeToFile:atomically: and writeToURL:atomically: in CPArray and CPDictionary would be very useful.

Reported by Mala · September 15th, 2008 @ 09:48 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Farcaller
    Farcaller

    initWithContentsOfURL implemented for CPDictionary in the attached patch. I suppose there's no use for initWithContentsOfFile in cappuccino, tell me if I'm wrong.

    February 4th, 2009 @ 12:20 AM

  2. Ross Boucher
    Ross Boucher
    • 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.

    March 24th, 2009 @ 11:09 PM

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.