Since the CocoaRenderView is forward declared with @class instead of imported,

instance must be cast to NSView* when passed to NSView's addSubView method.
Review URL: http://webrtc-codereview.appspot.com/288001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1056 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
zakkhoyt@webrtc.org 2011-11-29 23:55:19 +00:00
parent c9801465b6
commit 2687b261d5

View File

@ -51,7 +51,7 @@ int ViEAutoTestWindowManager::CreateWindows(AutoTestRect window1Size,
window1Size.size.height);
_cocoaRenderView1 = [[CocoaRenderView alloc]
initWithFrame:cocoaRenderView1Frame];
[[outWindow1 contentView] addSubview:_cocoaRenderView1];
[[outWindow1 contentView] addSubview:(NSView*)_cocoaRenderView1];
[outWindow1 setTitle:[NSString stringWithFormat:@"%s", window1Title]];
[outWindow1 makeKeyAndOrderFront:NSApp];
@ -67,7 +67,7 @@ int ViEAutoTestWindowManager::CreateWindows(AutoTestRect window1Size,
window2Size.size.height);
_cocoaRenderView2 = [[CocoaRenderView alloc]
initWithFrame:cocoaRenderView2Frame];
[[outWindow2 contentView] addSubview:_cocoaRenderView2];
[[outWindow2 contentView] addSubview:(NSView*)_cocoaRenderView2];
[outWindow2 setTitle:[NSString stringWithFormat:@"%s", window2Title]];
[outWindow2 makeKeyAndOrderFront:NSApp];
@ -130,7 +130,7 @@ int main(int argc, const char * argv[])
@implementation AutoTestClass
-(void)autoTestWithArg:(NSString*)answerFile;
-(void)autoTestWithArg:(NSString*)answerFile
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];