• 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
Opening a file but not associating with NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening a file but not associating with NSDocument


  • Subject: Opening a file but not associating with NSDocument
  • From: Rick Mann <email@hidden>
  • Date: Thu, 19 May 2016 16:13:43 -0700

I have a complex NSDocument with lots of files. One of those files is has a .mfst extension. If the user double-clicks one of those files, I want my app to create my NSDocument subclass, and then call a method on it to read the contents of that file, but I don't want that to be the file it then associates with the document. The actual on-disk representation is a package, and can either copy the originally-opened file contents into the package, or reference that file with an alias.

At some point, the user will have to specify a location for the "real" document package to live. Conversely, if the user double-clicks on the real document package, I want that to behave as expected.

How do I set up my Document Types and handle this scenario?

Thanks.

--
Rick Mann
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: Opening a file but not associating with NSDocument
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: iOS - the joy of observers and NSInternalInconsistancyException for KVO
  • Next by Date: Re: Cocoa-dev Digest, Vol 13, Issue 224
  • Previous by thread: Re: iOS - the joy of observers and NSInternalInconsistancyException for KVO
  • Next by thread: Re: Opening a file but not associating with NSDocument
  • Index(es):
    • Date
    • Thread