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 r...@rols.org To: Jens Alfke j...@mooseyard.com Cc: Jonathan Guy jonathan...@mac.com, cocoa-dev@lists.apple.com Subject: Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

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

Re: NSOutlineView

2014-09-06 Thread Ken Thomases
On Sep 6, 2014, at 11:58 AM, Charles Jenkins cejw...@gmail.com 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

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 rai...@brockerhoff.net 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],

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 rai...@brockerhoff.net 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