我正在尝试构建一个使用 QTKit 的应用程序,并带有一些压缩选项。我在苹果开发者页面QTCompressionOptionsWindow中看到了这个例子,它为此目的使用了一个窗口。
在 MyController.m 第 65 行有一条评论:
// ******** Compression Options Window *****
// create our window with the media type and set ourselves as the delegate
// you could also instantiate the window directly in the nib and hook up the delegate
// simply call showWindow or setMediaType if you want to change the list of compression options shown
mCompressionOptionsWindow = [[QTCompressionOptionsWindow alloc] initWithMediaType:[[[mCaptureMovieFileOutput connections] lastObject] mediaType]];
if (nil == mCompressionOptionsWindow) {
NSLog(@"Compression Options Window did not load!\n");
return;
}
[mCompressionOptionsWindow setDelegate:self];
谁能解释一下作者试图解释什么
“您可以直接在笔尖中实例化窗口”
?. 他确实有一个带有 QTCompressionOptionsWindow 的笔尖
感谢您的回复