0

I have a Cocoa document-based application that works fine. However, when I create a UTI for the document and export it, my application can neither read, write or create its own files (or any others). It has only a menu. No logs, nothing.

Is the Cocoa NSDocument system really that broken?

dcsalmon
  • 61
  • 5

1 Answers1

0

No, the NSDocument system is not that broken. You have a bug. The most likely cause is that you have corrupted your Info.plist. Without some hints about what you've actually done it's difficult to be certain, but that's the most likely. You can use plutil -lint <file> to make sure you haven't broken that.

Beyond that, of course, try removing the UTI and see if the problem goes away. If so, then you are likely adding the UTI incorrectly and with details, we may be able to help. If the problem doesn't go away, you broke something else that you didn't realize you touched.

Rob Napier
  • 286,113
  • 34
  • 456
  • 610
  • Yes, you are correct, thanks. I was tired and my document code was testing for the old document type. My bad. – dcsalmon Mar 17 '15 at 13:23