1
我刚刚升级到Mountain Lion和Xcode 4.4,现在每当我在现有应用程序的QTMovieView上加载电影时,我都会收到这些警告。加载QTMovie时出现警告
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
检索。电影打开并播放正常,但我想摆脱这些警告。
我不明白他们来自哪里,他们apear涉及到NSImage
类,但我甚至没有在我的应用中使用NSImage
对象。