On Aug 12, 2013, at 21:42:10, Kyle Sluder <k...@ksluder.com>
 wrote:

> Are you using NSDocument? If so, return YES from 
> +canConcurrentlyReadDocumentsOfType: to let NSDocumentController know it can 
> initialize your document in the background. Then it will call 
> -makeWindowControllers on the main thread.
> 
> If you're running the NSOpenPanel yourself, just fire off your background 
> work from its completion handler.

That didn't make any difference here. Returning YES or NO from that appeared to 
have the same behavior, even if I selected 2 files in the Open dlog. Also, 
thread safety is a major concern. Oh, I think I see why it didn't make a 
difference. I'd forgotten that we are running the open dlog ourself, not using 
Cocoa's. I might look at using a completion handler. Thanks, both of you.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to