Cocoa 从我的IKPictureTaker应用程序获取奇怪的视频警告

Cocoa 从我的IKPictureTaker应用程序获取奇怪的视频警告,cocoa,macos,ikpicturetaker,Cocoa,Macos,Ikpicturetaker,我有一个简单的小osx应用程序,它只启动一个IKPictureTaker,然后将生成的图片保存为.tiff文件。这一切似乎都很好,但每次我拍照时都会反复出现以下错误: 2009-11-10 12:25:38.890 Take A Picture[855:9c23] *** QTCaptureSession warning: Session received the following error while decompressing video: Error Domain=NSOSStatus

我有一个简单的小osx应用程序,它只启动一个IKPictureTaker,然后将生成的图片保存为.tiff文件。这一切似乎都很好,但每次我拍照时都会反复出现以下错误:

2009-11-10 12:25:38.890 Take A Picture[855:9c23] *** QTCaptureSession warning: Session received the following error while decompressing video: Error Domain=NSOSStatusErrorDomain Code=-67441 "Operation could not be completed. (OSStatus error -67441.)". Make sure that the formats of all video outputs are properly configured.
代码非常简单:

- (void)awakeFromNib
{


IKPictureTaker *sharedPictureTaker = [IKPictureTaker pictureTaker];

[sharedPictureTaker setValue:[NSNumber numberWithBool:YES] forKey:IKPictureTakerShowEffectsKey];

[sharedPictureTaker beginPictureTakerWithDelegate:self didEndSelector:@selector(pictureTakerDidEnd:returnCode:contextInfo:) contextInfo:nil];
}


- (void) pictureTakerDidEnd:(IKPictureTaker *) picker
             returnCode:(NSInteger) code
            contextInfo:(void*) contextInfo
{

NSImage *image = [picker outputImage];
NSString *folder = @"/Users/Mike/Library/Application Support/file.tiff";
folder = [folder stringByExpandingTildeInPath];
[[image TIFFRepresentation] writeToFile:@"~/Library/Application Support/file2.tiff" atomically:NO];
}

听起来您的机器可能存在一些配置问题。你能在另一台上测试它吗?你的应用程序中还有其他问题吗?如果您选择不同类型的图像文件,或者仅在拍摄时,您会得到相同的结果吗


您的字符串在编写方法中有点混淆,但除此之外,代码在其他处女应用程序中运行良好。

我将尝试在另一台机器上测试它,当我可以访问它时。这就是整个应用程序。我只在捕获时收到这些消息。您在运行此代码时打开了调试器控制台?我重新开始并重新执行了所有步骤(没有在第一次尝试设置时执行的一些不必要的步骤),现在它工作正常。感谢您花时间运行我的代码。