The NSDocument property “autosavingFileType” lets the developer indicate which 
one of the types the document class supports will be the one used for 
auto-saves. The notes at the website suggest that “init(for: withContentsOf: 
ofType:)” be overridden too. It punts to the TextEdit sample document class, 
but I don’t see anything that would help. However, could I use 
“NSDocumentController.typeForContents(of:)” to fill in the original file’s type?

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

_______________________________________________

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