1

当我的应用程序显示“保存文件”窗格时,我在 xcode 的输出日志中收到一条我不理解的消息。

消息是 StressIt[38940:6d83] [QL] Can't get plugin bundle info at XTUM/ -- file://localhost/Users/kalle/Library/Developer/Xcode/DerivedData/StressIt-exmfuiykgzqebkbxzzwzsuzawjyk/Build/Products/调试/

我用谷歌搜索它,发现它似乎是 OSX 中的一个常见错误,但找不到与开发目标 c 相关的任何信息。有谁知道这是什么?我做错什么了吗?我可以修复它吗?

我被盗的保存文件的代码

// String to write
NSString * zStr = [[NSString alloc] initWithString:[[resultTextOutlet textStorage] string]];

// Get an URL
NSSavePanel * zSavePanel = [NSSavePanel savePanel];
NSInteger zResult = [zSavePanel runModal];
if (zResult == NSFileHandlingPanelCancelButton) {
    return;
}

// Store url where to save the file
NSURL *zUrl = [zSavePanel URL];

// Write file
BOOL zBoolResult = [zStr writeToURL:zUrl atomically:YES encoding:NSASCIIStringEncoding error:NULL];

// Report write error
if (! zBoolResult) {
    NSAlert *writeError = [NSAlert alertWithMessageText:@"Error while writing file" defaultButton:@"OK" alternateButton:nil otherButton:nil informativeTextWithFormat:@"Something went wrong whilw writing the file to disk."];
    [writeError beginSheetModalForWindow:appWindow modalDelegate:nil didEndSelector:nil contextInfo:nil];
}
4

1 回答 1

0

That's a QuickLooks error generated from inside the NSSavePanel. I have the same issue, and there's no real way to make it go away; it seems like every single OSX-native file dialog spawns that message if there's a plugin on the end-user's system that's registered but can't be loaded. I suspect that in my case, going from Lion to Mountain Lion may have left an old QL PPC binary in the system. Since Apple no longer supports classic, the plugin can't be loaded. But that's conjecture. What I know for certain is: that's QuickLooks, not your program, and you can safely ignore it.

于 2013-04-16T17:20:31.173 回答