Re: Increasing stack size of NSDocument's open file thread

2017-07-06 Thread Graham Cox
> On 7 Jul 2017, at 2:44 am, Jens Alfke wrote: > > >> On Jul 6, 2017, at 8:42 AM, Steve Mills wrote: >> >> 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. > > This. Although I w

CloudKit - partialFailure and limitExceeded

2017-07-06 Thread somu subscribe
Hi, In CloudKit, I would like to know all the possible CKError.Code for a .partialFailure error. Assumptions: Presently I am only handling the following CKError.Code for partialFailure. .serverRecordChanged //Only applicable while saving records .zoneNotFound //Only applicable while fetching

Re: Increasing stack size of NSDocument's open file thread

2017-07-06 Thread Jens Alfke
> On Jul 6, 2017, at 8:42 AM, Steve Mills wrote: > > 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. This. Although I would also consider looking at your code to see if it can be re

Re: Increasing stack size of NSDocument's open file thread

2017-07-06 Thread Alastair Houghton
On 6 Jul 2017, at 16:33, Graham Cox 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

Re: Increasing stack size of NSDocument's open file thread

2017-07-06 Thread Steve Mills
On Jul 6, 2017, at 10:33:56, Graham Cox 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 - certainl

Re: Increasing stack size of NSDocument's open file thread

2017-07-06 Thread Graham Cox
> On 6 Jul 2017, at 11:04 pm, Alastair Houghton > wrote: > > There’s no way an API could exist that did that - in general it’d have to > copy the entire existing stack to a new location, then update a load of > pointers that it has no obvious way to find (otherwise the moment you return, > e

Re: Increasing stack size of NSDocument's open file thread

2017-07-06 Thread Alastair Houghton
On 6 Jul 2017, at 06:57, Graham Cox wrote: > > I’m wondering if there’s a way to increase the stack size of the thread that > opens my NSDocument in the background. There’s no way an API could exist that did that - in general it’d have to copy the entire existing stack to a new location, then