document-types

Document Type Icon not showing on custom file MacOS

自古美人都是妖i 提交于 2021-02-08 20:54:12
问题 My application needs to have custom document support, but I did not start out with a Document-template in xcode. I did manage to properly load and save the data by following among other things this tutorial: https://www.brandpending.com/2016/02/21/opening-and-saving-custom-document-types-from-a-swift-cocoa-application/. One problem though, is that my custom icon is not showing on my file! it is still a blank page-icon :(. What Am I doing wrong? Here is my setup: my HSDocument code: -(BOOL