2012-08-09 46 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報告它