Skip to content

Commit ac59dc0

Browse files
committed
Rename nsWindow to nativeObject in Window API
Refactored the Window class to expose a more generic nativeObject property instead of the macOS-specific nsWindow. Updated the underlying function call to match the new naming and broaden platform compatibility. Updated CNativeAPI submodule.
1 parent f7da31a commit ac59dc0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/NativeAPI/Window.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ public class Window {
343343

344344
// MARK: - Platform-specific
345345

346-
/// Get the NSWindow handle (macOS only)
347-
public var nsWindow: UnsafeMutableRawPointer? {
348-
return native_window_get_ns_window(handle)
346+
/// Get the native object handle
347+
public var nativeObject: UnsafeMutableRawPointer? {
348+
return native_window_get_native_object(handle)
349349
}
350350
}
351351

0 commit comments

Comments
 (0)