Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-06 Thread Rainer Brockerhoff
On 9/6/14, 14:50, Ken Thomases wrote: > On Sep 6, 2014, at 7:59 AM, Rainer Brockerhoff wrote: > ... > ... But never do modal stuff in that block. > > Why not do modal stuff in such a block? I don't think this function > is subject to the same serializing problem I described in my previous > emai

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-06 Thread Ken Thomases
On Sep 6, 2014, at 7:59 AM, Rainer Brockerhoff wrote: > Sidenote: on OS X the best way to run a UI-doing block would be to > define this function: > > void RunBlockOnMainThread(^(void)block) { > CFRunLoopPerformBlock([[NSRunLoop mainRunLoop] getCFRunLoop], > kCFRunLoopCommonModes, block);

Re: NSOutlineView

2014-09-06 Thread Ken Thomases
On Sep 6, 2014, at 11:58 AM, Charles Jenkins wrote: > I’m returning the correct string that should appear at every node of the > tree, but it’s not being used. Each node in the tree is a text view cell. If > I leave IB’s default title of “Text View Cell,” that’s what appears on every > node of

NSOutlineView

2014-09-06 Thread Charles Jenkins
Hi, everyone. I have a real noob question. My end goal is to write my own word processor similar Jer’s Novel Writer, which hasn’t been updated in years and is now a bit unstable. My immediate goal is to learn how to use the object Xcode 6’s design palette calls a Source View. It ultimately deri

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-06 Thread Rainer Brockerhoff
On 9/6/14, 0:22, cocoa-dev-requ...@lists.apple.com wrote: > Date: Sat, 06 Sep 2014 06:18:41 +0800 > From: Roland King > To: Jens Alfke > Cc: Jonathan Guy , cocoa-dev@lists.apple.com > Subject: Re: dispatch_sync(dispatch_get_main_queue() UI weirdness > Message-ID: <1efd71f4-dd4d-4937-a238-348b3c81