I still didn't manage to catch the crash, but judging by the error from the video, I think we should just overwrite the writeContents method and make a check, similar to what is done in loadFromContents in InputDocument (as far as I understood it is used instead of the regular UIDocument).
I still didn't manage to catch the crash, but judging by the error from the video, I think we should just overwrite the writeContents method and make a check, similar to what is done in
loadFromContents
inInputDocument
(as far as I understood it is used instead of the regularUIDocument
).