我刚刚升级到 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];
}
从哪里url
检索到NSOpenPanel
。电影打开并且播放良好,但我想摆脱这些警告。
我不明白它们来自哪里,它们似乎与NSImage
班级有关,但我什至没有NSImage
在我的应用程序中使用对象。