Have you read any of the documentation? Your question sounds rather like you
haven’t if I’m honest!
If using the asynchronous features of the document system, the read and writing
methods are still called and execute synchronously, but on a worker thread.
There are various APIs built into the
The NSDocument class has some core methods for you to override to read and
write data from/to disk. Are those called from the main thread? If so, can
you defer the actual work to an NSOperation or something? If you do so, what
is your GUI supposed to do/show? Or will the window not be shown