3

On a screen-recording github project here, I saw one line of code:

mCaptureScreenInput = [[NSClassFromString(@"QTCaptureScreenInput") alloc] init];

A google search for QTCaptureScreenInput reveals only two mentions on the web, that project and another one with an unused ivar of that type.

What is a QTCaptureScreenInput?

personak
  • 539
  • 4
  • 15

1 Answers1

2

It's a private API. You can see here that QuickTime Player uses it to implement screen recording.

LaC
  • 12,624
  • 5
  • 39
  • 38
  • 2
    If you are targeting Lion, you can use [AVCaptureScreenInput](http://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVCaptureScreenInput_Class/) which is a public API. – spudwaffle Jan 22 '12 at 18:02