Browse Source

return native handles.

Dan Walmsley 6 years ago
parent
commit
b9f0898a37
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/Avalonia.Native/WindowImplBase.cs

+ 4 - 4
src/Avalonia.Native/WindowImplBase.cs

@@ -29,18 +29,18 @@ namespace Avalonia.Native
 
         public string HandleDescriptor => "NOT SUPPORTED";
 
-        public IntPtr NSView => throw new NotImplementedException();
+        public IntPtr NSView => _native.ObtainNSViewHandle();
 
-        public IntPtr NSWindow => throw new NotImplementedException();
+        public IntPtr NSWindow => _native.ObtainNSWindowHandle();
 
         public IntPtr GetNSViewRetained()
         {
-            throw new NotImplementedException();
+            return _native.ObtainNSViewHandleRetained();
         }
 
         public IntPtr GetNSWindowRetained()
         {
-            throw new NotImplementedException();
+            return _native.ObtainNSWindowHandleRetained();
         }
     }