From b6583ec9e0307938a74b9f41a950ce4586a9288d Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 12 Jul 2024 09:39:49 +0200 Subject: [PATCH] This was one hack too far. --- native/Avalonia.Native/src/OSX/controlhost.mm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/native/Avalonia.Native/src/OSX/controlhost.mm b/native/Avalonia.Native/src/OSX/controlhost.mm index df7ec8c9e0..5683a5a975 100644 --- a/native/Avalonia.Native/src/OSX/controlhost.mm +++ b/native/Avalonia.Native/src/OSX/controlhost.mm @@ -83,10 +83,7 @@ public: { if(_child != nil) return E_FAIL; - //_child = (__bridge NSView*)child; - auto tv = [[FooTextView alloc] initWithFrame:NSMakeRect(0, 0, 200, 100)]; - tv.string = @"Foo bar"; - _child = tv; + _child = (__bridge NSView*)child; if(_child == nil) return E_FAIL; [_holder addSubview:_child];