2012-08-09 48 views
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]; 
} 

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

我不明白他们来自哪里,他们apear涉及到NSImage类,但我甚至没有在我的应用中使用NSImage对象。

回答

0

from -setMovie call,not you fault。

compositeToPoint:在SDK 3.26的NSImage.h

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

声明我们应该bug报告它