On Jun 22, 2015, at 1:44 AM, Uli Kusterer <[email protected]> wrote: > > On 22 Jun 2015, at 00:02, Charles Srstka <[email protected] > <mailto:[email protected]>> wrote: >> I’ve used NSDocument with non-file URLs for years, just not with autosave. >> (I really, really wish that autosavesInPlace were an instance method instead >> of a class method, so I could just have it return true conditionally upon >> the URL being a file URL, but oh well.) > > What's preventing you from subclassing your document class and claiming the > file scheme with the superclass, your custom scheme with the subclass?
I thought of that, but then you lose the ability to do a Save As on a document using the custom URL scheme and save it to a file on the desktop, and have it be a regular file from there on out. Charles _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
