繁体   English   中英

加载QTMovie时发出警告

[英]Warning when loading a QTMovie

我刚刚升级到Mountain Lion和Xcode 4.4,现在每当在现有应用程序的QTMovieView上加载电影时,都会收到这些警告。

2012-08-09 23:56:16.132 MyApp[3590:303] *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
2012-08-09 23:56:16.134 MyApp[3590:303] *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
2012-08-09 23:56:16.137 MyApp[3590:303] *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
2012-08-09 23:56:16.137 MyApp[3590:303] *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.

我正在使用以下代码打开电影:

QTMovie *movie = [QTMovie movieWithURL:url error:nil];

if (movie)
{
    [[movieView movie] stop];
    [movieView setMovie:movie];
}

NSOpenPanel检索urlNSOpenPanel 这部电影开始播放并正常播放,但是我想摆脱这些警告。

我不知道它们来自哪里,它们似乎与NSImage类有关,但是我什至没有在我的应用程序中使用NSImage对象。

来自您的-setMovie调用,而不是您的错。

CompositeToPoint:在SDK 3.26的NSImage.h中声明

- (void)compositeToPoint:(NSPoint)point fromRect:(NSRect)rect operation:(NSCompositingOperation)op fraction:(CGFloat)delta;

我们应该报告错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM