Re: Increasing stack size of NSDocument's open file thread
Re: Increasing stack size of NSDocument's open file thread
- Subject: Re: Increasing stack size of NSDocument's open file thread
- From: Steve Mills <email@hidden>
- Date: Thu, 06 Jul 2017 10:42:44 -0500
On Jul 6, 2017, at 10:33:56, Graham Cox <email@hidden> wrote:
>
>
> I appreciate your answer, and I realise there’s no API that could set the
> stack size after the thread is created.
>
> But presumably the stack size of the thread is set somewhere as a parameter
> to the thread when it’s created - certainly if I create a thread myself it’s
> one of the attributes. So the question is is there a way to set up a value
> that NSDocumentController will use when opening a file? The default stack
> size seems very small, considering that dearchiving can be quite recursive in
> nature.
Why can't you spawn your own thread to do the recursive code? Create the
NSThread, set its stack size, light its fuse to do the processing, and delete
it.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden