• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is NSDocument reverting so rudimentary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is NSDocument reverting so rudimentary?


  • Subject: Re: Why is NSDocument reverting so rudimentary?
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 24 Jul 2012 19:30:18 +0100

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 <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Why is NSDocument reverting so rudimentary?
      • From: Markus Spoettl <email@hidden>
References: 
 >Why is NSDocument reverting so rudimentary? (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Forcing Core Data to save attribute changed behind its back?
  • Next by Date: Re: Why is NSDocument reverting so rudimentary?
  • Previous by thread: Why is NSDocument reverting so rudimentary?
  • Next by thread: Re: Why is NSDocument reverting so rudimentary?
  • Index(es):
    • Date
    • Thread