Not even
dispatch_async(dispatch_get_main_queue(), ^{
NSLog(@"Test..");
});
from main thread/queue works.
Reading the documentation there seem to be a
dispatch_main()
call required to execute blocks on main queue.
If I add this call after the above the blocks on the main queue executes just fine, however, the code freezes there.
As it says:
* This function "parks" the main thread and waits for blocks to be submitted
* to the main queue. This function never returns.
* Applications that call NSApplicationMain() or CFRunLoopRun() on the
* main thread do not need to call dispatch_main().
This makes me think that there is something missing in GNUstep compared to Cocoa's NSRunLoop to enable this.
Anyone have any idea about this?
--
Johannes Lundberg