1

我刚刚升级到 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在我的应用程序中使用对象。

4

1 回答 1

0

来自您的 -setMovie 电话,而不是您的错。

CompositeToPoint:在 SDK 3.26 的 NSImage.h 中声明

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

我们应该报告它

于 2012-08-10T05:27:28.300 回答