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
對象。