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 doc system to coordinate everything 
around that.

Mike.

> On 17 Apr 2016, at 04:23, Daryle Walker <[email protected]> wrote:
> 
> 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 yet?
> 
> — 
> Daryle Walker
> Mac, Internet, and Video Game Junkie
> darylew AT mac DOT com 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/mabdullah%40karelia.com
> 
> This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to