• 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
Can I use the restore/auto-save loading functions for imports?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I use the restore/auto-save loading functions for imports?


  • Subject: Can I use the restore/auto-save loading functions for imports?
  • From: Daryle Walker <email@hidden>
  • Date: Mon, 06 Mar 2017 16:58:03 -0500

The docs fo “NSDocumentController.reopenDocument(for: withContentsOf: display: completionHandler:)” mention it’s for app restore. It ultimately calls “NSDocument.init(for: withContentsOf: ofType:)”, which mentions autosaved documents. Do I have to restrict these methods for their documented purposes? Or can I use them for general code, like an import-document function? They look perfect; they load in a file’s data to a new document, but leave the document’s file-identity anonymous afterwards.

—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

_______________________________________________

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:
    • My method causes DATA LOSS! (was: Can I use the restore/auto-save loading functions for imports?)
      • From: Daryle Walker <email@hidden>
    • Re: Can I use the restore/auto-save loading functions for imports?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: ncurses type wrapper for NStextview
  • Next by Date: Re: Unicode filenames with Apple File System and UIManagedDocument
  • Previous by thread: Re: ncurses type wrapper for NStextview
  • Next by thread: Re: Can I use the restore/auto-save loading functions for imports?
  • Index(es):
    • Date
    • Thread