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 <ms_li...@shiftoption.com> wrote:

> 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  -readFromFileWrapper::: 
> and -fileWrapperOfType:: methods and leave the actual file OS interaction to 
> NSDocument. I basically don't have to care where it comes from or where it 
> goes to. Wonderful!
> 
> Am I overlooking something?
> 
> Regards
> Markus
> -- 
> __________________________________________
> Markus Spoettl
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net
> 
> This email sent to cocoa...@mikeabdullah.net


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to