Re: Window updates stall on headless Mac mini

2016-03-21 Thread Steve Mills
On Mar 19, 2016, at 03:27 AM, Ken Thomases wrote: No. The main thread is blocked waiting for another Cocoa thread. It's waiting on an internal pthread condition variable. There must be some other thread which is going to signal that condition variable under some circumstances. In all likeliho

Re: Window updates stall on headless Mac mini

2016-03-21 Thread Ken Thomases
On Mar 21, 2016, at 11:23 AM, Steve Mills wrote: > > On Mar 19, 2016, at 03:27 AM, Ken Thomases wrote: > >> No. The main thread is blocked waiting for another Cocoa thread. It's >> waiting on an internal pthread condition variable. >> >> There must be some other thread which is going to signa

Re: Window updates stall on headless Mac mini

2016-03-21 Thread Steve Mills
On Mar 21, 2016, at 14:09:48, Ken Thomases wrote: > > Thread 9 is apparently what's blocking your main thread. It is animating a > progress indicator. I have encountered my own problems with this heartbeat > thread deadlocking Cocoa. (You are not encountering a deadlock, per se.) > You can

Re: UIDocument with NSFileWrapper

2016-03-21 Thread davelist
> On Mar 21, 2016, at 2:08 AM, Quincey Morris > wrote: > > On Mar 19, 2016, at 18:54 , davel...@mac.com wrote: >> >> What I’m having trouble understanding is how I store the images (whose >> filenames will vary from document to document) with NSFileWrapper. In my top >> level directory do I

Re: UIDocument with NSFileWrapper

2016-03-21 Thread Luther Baker
Thanks for posting this. Exploring UIDocument and caching/parsing JSON instead of CoreData for a service based mobile app that must support offline mode ... and looking forward to considering where you landed. On Mon, Mar 21, 2016 at 5:11 PM wrote: > > > On Mar 21, 2016, at 2:08 AM, Quincey Morri

NSThread to NSOperation and blockUntil

2016-03-21 Thread Trygve Inda
I have a thread that is invoked with: [NSThread detachNewThreadSelector:@selector(threadMethod:) toTarget:self withObject:self]; It uses NSConditionLock and works well. This thread performs a complex process but does it slowly so as to not use much processor time. I specify how long I want it to

#selector noob question

2016-03-21 Thread Eric E. Dolecki
Quick question. If I use #selector(funcName) - does it always send an argument of the obj if the func requests it or not? If the function being called has a typed argument of something like sender:UIButton, I can reference the sender in the func. Before with a string we could add the ":" to inform

Re: #selector noob question

2016-03-21 Thread Quincey Morris
On Mar 21, 2016, at 20:27 , Eric E. Dolecki wrote: > > Quick question. If I use #selector(funcName) - does it always send an > argument of the obj if the func requests it or not? > > If the function being called has a typed argument of something like > sender:UIButton, I can reference the sender

Re: NSThread to NSOperation and blockUntil

2016-03-21 Thread Quincey Morris
On Mar 21, 2016, at 18:07 , Trygve Inda wrote: > > I would like to move this to NSOperation and NSOperationQueue but I see no > way to replicate this behavior. I think the GCD/NSOperationQueue concept of “background” quality of service is what you want here. That would let your re-factored calc

Re: NSThread to NSOperation and blockUntil

2016-03-21 Thread Trygve Inda
> On Mar 21, 2016, at 18:07 , Trygve Inda wrote: >> >> I would like to move this to NSOperation and NSOperationQueue but I see no >> way to replicate this behavior. > > I think the GCD/NSOperationQueue concept of “background” quality of service is > what you want here. That would let your re-fac