diff options
| author | Glenn <terids@gmail.com> | 2025-11-03 23:03:33 +0000 |
|---|---|---|
| committer | Glenn <terids@gmail.com> | 2025-11-03 23:03:33 +0000 |
| commit | 65ee1339b9309464fb3a1cae991ae058ac5f7938 (patch) | |
| tree | 75742f10b4dc3a854d08d7444743c601cfa3659a /core | |
| parent | 332653ca24a399dfb24660353d086d7e97d44985 (diff) | |
Add View alloc
Diffstat (limited to 'core')
| -rw-r--r-- | core/sys/darwin/Foundation/NSWindow.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/sys/darwin/Foundation/NSWindow.odin b/core/sys/darwin/Foundation/NSWindow.odin index bbfaa14cd..173826c79 100644 --- a/core/sys/darwin/Foundation/NSWindow.odin +++ b/core/sys/darwin/Foundation/NSWindow.odin @@ -654,6 +654,10 @@ Responder :: struct {using _: Object} @(objc_class="NSView") View :: struct {using _: Responder} +@(objc_type=View, objc_name="alloc", objc_is_class_method=true) +View_alloc :: proc "c" () -> ^View { + return msgSend(^View, View, "alloc") +} @(objc_type=View, objc_name="initWithFrame") View_initWithFrame :: proc "c" (self: ^View, frame: Rect) -> ^View { |