Why is NSDocument reverting so rudimentary?

2012-07-24 Thread Markus Spoettl
Hello, more out of curiosity, I wonder why document reverting does not provide the same level of abstraction loading and writing does? There's only -revertToContentsOfURL:::. By contrast I can load and write documents by using abstract -readFromData::: and -dataOfType:: or

Re: Why is NSDocument reverting so rudimentary?

2012-07-24 Thread Mike Abdullah
Reverting a document calls through to -readFromURL:… internally. The read and write methods are primitive, and not intended to be called directly. The save, init, and revert methods are the higher level API designed for calling directly. On 24 Jul 2012, at 19:13, Markus Spoettl

Re: Why is NSDocument reverting so rudimentary?

2012-07-24 Thread Markus Spoettl
OK, thanks for setting me straight and sorry for the noise. I could have sworn it didn't work yesterday. It does. Regards Markus On 7/24/12 8:30 PM, Mike Abdullah wrote: Reverting a document calls through to -readFromURL:… internally. The read and write methods are primitive, and not