

That's why I suggest starting with the template.

But there are many different ways for it to break and only one, completely undocumented, way for it to work properly. In my apps I am typically doing something funky, so I typically have these problems. It is difficult to say where the problem is. If you deviate from those defaults, by even the slightest amounts, you can expect problems. It is best to start with the template and follow those defaults.

The NSDocument architecture is old-school Mac, with lots of funky new stuff thrown in with no documentation. It sounds like you are coming from a Swift/iOS background.
