aboutsummaryrefslogtreecommitdiff
path: root/core/sys/darwin
Commit message (Collapse)AuthorAgeFilesLines
* Remove `core:mem` import from `core:sys/darwin/Foundation`.Jeroen van Rijn3 days1-6/+6
|
* Create new `core:sys/darwin/CoreGraphics` package (#6147)Tohei Ichikawa2026-01-235-12/+115
| | | | | | | | | | | * Add Darwin mouse cursor-related bindings Create CoreGraphics package in the process * Remove unneeded semicolons * Define some CG types in CoreFoundation instead This matches where Darwin's C header files defines these types
* Add NSWindow layout information method bindings to darwin/Foundation (#6040)Jacob Evelyn2026-01-131-0/+20
| | | | | | | This commit adds bindings for `NSWindow`'s ["Getting Layout Information"](https://developer.apple.com/documentation/appkit/nswindow?language=objc#Getting-Layout-Information) methods to the `core:sys/darwin/Foundation` package. Co-authored-by: Jacob Evelyn <j@cob.land>
* Fix darwin/Foundation/NSScreen type property bindings (#6038)Jacob Evelyn2026-01-131-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit updates the `darwin/Foundation` package's `NSScreen` bindings to treat Objective-C "type properties" as class methods rather than instance methods. As a result, we can now access these properties like this: ```odin import NS "core:sys/darwin/Foundation" main :: proc() { NS.Screen.mainScreen() } ``` instead of this: ```odin import NS "core:sys/darwin/Foundation" main :: proc() { (^NS.Screen)(nil).mainScreen() } ``` This commit also adds a binding for `NSScreen`'s `screensHaveSeparateSpaces` type property, which was previously missing from the `darwin/Foundation` package. Co-authored-by: Jacob Evelyn <j@cob.land>
* More bindings for darwinLucas Perlind2025-12-197-13/+95
|
* Added more NSApplication and NSWindow bindingsTohei Ichikawa2025-12-052-0/+58
|
* fix thread_act_t sizeColin Davidson2025-12-011-1/+1
|
* Add NSWindow coordinate space conversion bindingsTohei Ichikawa2025-11-181-0/+32
|
* Fix typo in NS.String_initWithCStringTohei Ichikawa2025-11-121-1/+1
|
* Add comma to last enums to fix build checkGlenn2025-11-031-2/+2
|
* Add Window_centerGlenn2025-11-031-0/+4
|
* Add View allocGlenn2025-11-031-0/+4
|
* Add additional window bindingsGlenn2025-11-031-0/+32
|
* Add orderFront and orderOutGlenn2025-11-031-0/+8
|
* Add getter for the WindowDelegate from the WindowGlenn2025-11-031-0/+4
|
* Add WindowCollectionBehaviour, WindowLevel, WindowTabbingModeGlenn2025-11-031-0/+54
|
* Add RunningApplication_finishedLaunchingGlenn2025-11-031-0/+5
|
* Add Application_postEventGlenn2025-11-031-0/+6
| | | | https://developer.apple.com/documentation/appkit/nsapplication/postevent(_:atstart:)?language=objc
* Add Event_otherEventWithTypeGlenn2025-11-031-0/+29
| | | | https://developer.apple.com/documentation/appkit/nsevent/otherevent(with:location:modifierflags:timestamp:windownumber:context:subtype:data1:data2:)
* Add Application_stopGlenn2025-11-031-0/+5
| | | | https://developer.apple.com/documentation/appkit/nsapplication/stop(_:)?language=objc
* Fix various foreign signaturesHarold Brenes2025-09-291-2/+4
|
* Fix addObserver methods and add support for new Objc_BlockTohei Ichikawa2025-09-111-2/+14
|
* Fixed and added obj-c methods for NSWindowStanislav Ch. Nikolov2025-08-281-2/+11
|
* Convert leading spaces to tabsSteve Waddicor2025-08-011-26/+26
|
* Merge branch 'odin-lang:master' into ↵cardboardguru762025-07-301-12/+333
|\ | | | | | | darwin-foundation-support-for-handmade-hero-port
| * shuffle to Kern_ReturnColin Davidson2025-07-291-19/+19
| |
| * enum passColin Davidson2025-07-291-25/+110
| |
| * Merge remote-tracking branch 'live/master' into macharenaColin Davidson2025-07-285-19/+9
| |\
| * | fix tabbingColin Davidson2025-07-071-4/+0
| | |
| * | Merge branch 'master' into macharenaColin Davidson2025-07-071-0/+9
| |\ \
| * \ \ Merge branch 'master' into macharenaColin Davidson2025-06-0810-204/+1336
| |\ \ \
| * | | | fix frequency grabColin Davidson2025-06-081-2/+2
| | | | |
| * | | | Merge branch 'master' into macharenaColin Davidson2025-04-2615-4/+363
| |\ \ \ \
| * \ \ \ \ update to masterColin Davidson2024-11-202-14/+510
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into macharenaColin Davidson2024-09-249-208/+295
| |\ \ \ \ \ \
| * | | | | | | spawn tweaksColin Davidson2024-09-241-0/+1
| | | | | | | |
| * | | | | | | add more dyld supportColin Davidson2024-08-291-0/+60
| | | | | | | |
| * | | | | | | oops, duplicate constColin Davidson2024-08-291-2/+0
| | | | | | | |
| * | | | | | | add more dyld info collectColin Davidson2024-08-291-0/+11
| | | | | | | |
| * | | | | | | add thread-info and memmap-infoColin Davidson2024-08-291-0/+34
| | | | | | | |
| * | | | | | | add ARM thread stateColin Davidson2024-08-291-2/+20
| | | | | | | |
| * | | | | | | more useful piecesColin Davidson2024-08-281-6/+74
| | | | | | | |
| * | | | | | | add stuff needed for process controlColin Davidson2024-08-251-3/+62
| | | | | | | |
* | | | | | | | Additional obj-c methods for darwin FoundationSteve Waddicor2025-07-292-0/+58
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Rename `iOS` subtarget to `iPhone` for consistency.Harold Brenes2025-07-141-15/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `ODIN_PLATFORM_SUBTARGET_IOS` builtin constant which evaluated to `true` when the platform is `Darwin` and the subtarget it either `iPhone` or `iPhoneSimulator`
* | | | | | | Replace system:System.framework imports with system:SystemHarold Brenes2025-07-134-4/+4
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | This makes the linker work for both macOS and iOS targets
* | | | | | Merge branch 'master' into tiocgwinsz_timeRaph2025-06-2011-206/+1342
|\ \ \ \ \ \
| * | | | | | Fix #5366Jeroen van Rijn2025-06-191-0/+4
| | |_|_|_|/ | |/| | | |
| * | | | | Deprecate old @(deprecated) things.Jeroen van Rijn2025-06-061-1/+0
| | | | | |
| * | | | | Add missing SEL _cmd argument to objc class_addMethod IMPsZach Clark2025-05-272-97/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.