I\'m trying to implement a feature in my app that will record the screen. I have bits of code that I have found in some sample code and a WWDC 2012 video.
So far I
For what it's worth, it looks like you're getting the runloop source, but then not adding it to the current run loop (CFRunLoopAddSource)
I solved the problem by using CGDisplayStreamCreateWithDispatchQueue and passing dispatch_queue_create("queue for dispatch", NULL); as the queue.
CGDisplayStreamCreateWithDispatchQueue
dispatch_queue_create("queue for dispatch", NULL);