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:
parent
c9801465b6
commit
2687b261d5
@ -51,7 +51,7 @@ int ViEAutoTestWindowManager::CreateWindows(AutoTestRect window1Size,
|
|||||||
window1Size.size.height);
|
window1Size.size.height);
|
||||||
_cocoaRenderView1 = [[CocoaRenderView alloc]
|
_cocoaRenderView1 = [[CocoaRenderView alloc]
|
||||||
initWithFrame:cocoaRenderView1Frame];
|
initWithFrame:cocoaRenderView1Frame];
|
||||||
[[outWindow1 contentView] addSubview:_cocoaRenderView1];
|
[[outWindow1 contentView] addSubview:(NSView*)_cocoaRenderView1];
|
||||||
[outWindow1 setTitle:[NSString stringWithFormat:@"%s", window1Title]];
|
[outWindow1 setTitle:[NSString stringWithFormat:@"%s", window1Title]];
|
||||||
[outWindow1 makeKeyAndOrderFront:NSApp];
|
[outWindow1 makeKeyAndOrderFront:NSApp];
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ int ViEAutoTestWindowManager::CreateWindows(AutoTestRect window1Size,
|
|||||||
window2Size.size.height);
|
window2Size.size.height);
|
||||||
_cocoaRenderView2 = [[CocoaRenderView alloc]
|
_cocoaRenderView2 = [[CocoaRenderView alloc]
|
||||||
initWithFrame:cocoaRenderView2Frame];
|
initWithFrame:cocoaRenderView2Frame];
|
||||||
[[outWindow2 contentView] addSubview:_cocoaRenderView2];
|
[[outWindow2 contentView] addSubview:(NSView*)_cocoaRenderView2];
|
||||||
[outWindow2 setTitle:[NSString stringWithFormat:@"%s", window2Title]];
|
[outWindow2 setTitle:[NSString stringWithFormat:@"%s", window2Title]];
|
||||||
[outWindow2 makeKeyAndOrderFront:NSApp];
|
[outWindow2 makeKeyAndOrderFront:NSApp];
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ int main(int argc, const char * argv[])
|
|||||||
|
|
||||||
@implementation AutoTestClass
|
@implementation AutoTestClass
|
||||||
|
|
||||||
-(void)autoTestWithArg:(NSString*)answerFile;
|
-(void)autoTestWithArg:(NSString*)answerFile
|
||||||
{
|
{
|
||||||
|
|
||||||
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user