Missing functionality: plist read/write #37

Closed
cappuccino opened this Issue May 3, 2009 · 8 comments

Projects

None yet

5 participants

@cappuccino

Everything is in title. ;)

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

original LH ticket

This ticket has 1 attachment(s).

@cappuccino

Missing functionality: plist read/write

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

by Farcaller

@cappuccino

Missing functionality: plist read/write

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.

by Ross Boucher

@farcaller
Contributor

NSDictionary commited at farcaller/cappuccino@8ea10ab

Any ideas how to make async version and keep it cocoa way?

@rickmark
  • [CPDictionary dictionaryWithContentsOfURL:(CPURL)url delegate:(id)delegate]; ?
  • [CPDictionary dictionaryWithContentsOfURL:(CPURL)url performingSelector:(SEL)selctor onObject:(id)delegate]; ?
@cappbot
cappbot commented May 9, 2012

Milestone: Someday. Labels: #accepted, #needs-patch, Foundation, feature. What's next? This issue needs a volunteer to write and submit code to address it.

@aparajita
Contributor

Not a priority, sorry.

#wont-fix

@cappbot
cappbot commented Feb 16, 2013

Milestone: Someday. Labels: #needs-patch, #wont-fix, Foundation, feature. What's next? A reviewer or core team member has decided against acting upon this issue.

@cappbot cappbot closed this Feb 16, 2013
@cappbot
cappbot commented Feb 16, 2013

Milestone: Someday. Labels: #wont-fix, Foundation, feature. What's next? A reviewer or core team member has decided against acting upon this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment