19 Commits

Author SHA1 Message Date
Glenn 4485a45866 Add Window_center 2025-11-03 23:05:26 +00:00
Glenn 65ee1339b9 Add View alloc 2025-11-03 23:03:33 +00:00
Glenn 332653ca24 Add additional window bindings 2025-11-03 18:06:43 +00:00
Glenn 916e8810cc Add orderFront and orderOut 2025-11-03 18:06:15 +00:00
Glenn 8b3d74f797 Add getter for the WindowDelegate from the Window 2025-11-03 17:54:42 +00:00
Glenn 406eb9c7f5 Add WindowCollectionBehaviour, WindowLevel, WindowTabbingMode 2025-11-03 17:28:51 +00:00
Stanislav Ch. Nikolov ed389c188c Fixed and added obj-c methods for NSWindow 2025-08-28 12:39:15 +03:00
Steve Waddicor 9c5e577792 Additional obj-c methods for darwin Foundation
Added support for NSBitmapImageRep class.
Added ability to set contents to a CALayer.
I needed these to support a port of Handmade Hero, but they are of general use.
2025-07-29 21:01:22 +01:00
Zach Clark 78d83288a0 Add missing SEL _cmd argument to objc class_addMethod IMPs
When trying to grab the window pointer off the notification in a
windowDidBecomeKey implementation, I kept getting segfaults calling
notification->object(). The second argument of these needs to be a SEL.

https://developer.apple.com/documentation/objectivec/class_addmethod(_:_:_:_:)?language=objc#Discussion

I imagine existing code is getting by by setting the window information
in the delegate's context userdata, which works fine when you only have
one window as you can avoid needing to call notification->object(),
until you want one delegate assigned to two windows, hard to work around.
2025-05-27 17:04:19 -07:00
Samuel Elgozi 19d6c01f0f Added Foundation bindings 2025-01-17 10:42:32 +02:00
Vitalii Kravchenko 004036dc59 More Foundation bindings. 2024-08-16 00:00:29 +01:00
Laytan Laats 108b8feb35 Add vendor:wgpu 2024-06-12 17:22:02 +02:00
gingerBill ef82f3e71e Move vendor:darwin/Foundation to core:sys/darwin/Foundation 2024-04-08 13:47:46 +01:00
gingerBill a3bcacee27 Move Objective-C libraries located in core:sys/darwin/* to vendor:darwin/* 2022-02-16 00:06:25 +00:00
gingerBill 803648be89 Minor aesthetic clean ups of Foundation 2022-02-15 15:34:07 +00:00
gingerBill 2958c1d6aa Add new shorthand 2022-02-13 16:56:27 +00:00
gingerBill 9dc83bc1b3 Add more methods 2022-02-13 16:32:31 +00:00
gingerBill 88b1b2c629 Correct types 2022-02-13 15:11:45 +00:00
gingerBill 41854bacf5 Add utility classes for dealing with Windows
Most for GLFW and SDL only
2022-02-13 11:54:40 +00:00