Objective c 尝试了解QTCompressionOptions WindowTest

Objective c 尝试了解QTCompressionOptions WindowTest,objective-c,interface-builder,compression,video-capture,qtkit,Objective C,Interface Builder,Compression,Video Capture,Qtkit,我正在尝试构建一个使用QTKit的应用程序,其中包含一些压缩选项。我在apple开发者页面上看到了这个例子,该页面使用了一个窗口 在MyController.m第65行中有一条注释: // ******** Compression Options Window ***** // create our window with the media type and set ourselves as the delegate // you could also instantiate the win

我正在尝试构建一个使用QTKit的应用程序,其中包含一些压缩选项。我在apple开发者页面上看到了这个例子,该页面使用了一个窗口

在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];
有人能解释一下作者想解释什么吗

您可以实例化窗口 直接在笔尖上

?。他有一个带QT压缩选项窗口的笔尖


感谢您的回复

本示例中MyController类的目的是简单说明如何使用QTCompressionOptions窗口类,特别是如何设置委托关系

在MyController示例中,作者选择在您发布的代码片段中设置此关系

该注释只是指出,如果您不想以编程方式执行此操作,可以使用IB来实现此目的:只需在NIB中创建QTCompressionOptions窗口类的实例==实例化,在该实例中放置自己的控制器,并将其委托出口连接到控制器


如果您觉得这完全是胡说八道,请查看《Interface Builder用户指南》的章节和。尽管我发现它们对于目标受众来说有点缺乏说明,但它们非常好。

2008年写了一份技术说明,其中讨论了如何在QTKit Capture中管理QTCompressionOptions,并深入讨论了QTCompressionOptions窗口示例

技术说明2219 管理QTCompressionOptions-QTCompressionOptions窗口示例概述