cfrunloop Questions
2
I have a connection in a thread, so I add it to the run loop to get all data:
[[NSRunLoop currentRunLoop] run];
[connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopM...
Moultrie asked 25/4, 2013 at 10:5
3
I'm following the iOS "Audio Queue Programming Guide - Playing Audio". Near the end of the guide, there are calls to CFRunLoopRunInMode() in the step Start and Run an Audio Queue:
do { // 5
CFRun...
Martial asked 8/1, 2013 at 16:14
2
I am writing a command line application in Swift using a third-party framework that (if I understand the code correctly) relies on GCD callbacks to complete certain actions when a socket receives d...
Bedeck asked 4/8, 2014 at 19:54
1
Solved
I have an NSRunLoop object, to which I attach timers and streams. It works great. Stopping it is another story alltogether.
I run the loop using [runLoop run].
If I try to stop the loop using CRu...
Add asked 21/12, 2011 at 13:26
2
Solved
The Mac build of my (mainly POSIX) application spawns a child thread that calls CFRunLoopRun() to do an event loop (to get network configuration change events from MacOS).
When it's time to pack t...
Plonk asked 1/9, 2009 at 17:58
1
© 2022 - 2024 — McMap. All rights reserved.