aboutsummaryrefslogtreecommitdiff
path: root/core/sys/darwin/Foundation
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-233-12/+40
| | | | | | | | | | | * 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
|
* 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 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
|
* 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.
* Replace system:System.framework imports with system:SystemHarold Brenes2025-07-131-1/+1
| | | | This makes the linker work for both macOS and iOS targets
* 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.
* Fix -vet complaints in `core:sys/darwin/Foundation`Jeroen van Rijn2025-05-172-2/+0
|
* Add NSMenuItem.odingingerBill2025-05-171-0/+461
|
* Add Objective-C helper for creating subclassesgingerBill2025-05-174-94/+712
|
* Fix 2 selectors in NSDictionaryHarold Brenes2025-04-171-2/+2
|
* SavePanel_URL returns ^URL instead of ^ArrayKeenan Woodall2025-02-231-2/+2
|
* Merge pull request #4782 from Daxode/nsstring-appendingstringgingerBill2025-02-021-0/+5
|\ | | | | Add stringByAppendingString to NSString
| * Add stringByAppendingString to NSStringdaniel.andersen2025-02-021-0/+5
| |
* | Fix tab indents in NSSavePanelduffn2025-01-291-3/+3
| |
* | Update `NSSavelPanel`gingerBill2025-01-281-0/+10
|/
* fix incorrect use of BoolSamuel Elgozi2025-01-181-1/+1
|
* updated to meet formatting styleSamuel Elgozi2025-01-172-3/+3
|
* Added Foundation bindingsSamuel Elgozi2025-01-179-0/+136
|
* sys/info & odin report: rework macos version retrievalLaytan Laats2024-11-263-2/+210
|
* Add NSApplication bindings for `mainWindow` and `keyWindow`Sebastian Pahnke2024-11-131-0/+10
|
* fix EventMaskAny definitionLaytan Laats2024-09-121-2/+2
|
* remove deprecation, technically deprecated but widely usedLaytan Laats2024-09-051-1/+4
|
* More Objective-C Runtime bindings.Vitalii Kravchenko2024-09-032-18/+100
|
* A couple of foundation binding. Vet tabs.Vitalii Kravchenko2024-08-212-2/+16
|
* More Foundation bindings.Vitalii Kravchenko2024-08-166-24/+104
|
* darwin: add setAllowedFileTypes binding for open panelsLaytan Laats2024-08-061-0/+4
|
* Add `vendor:wgpu`Laytan Laats2024-06-121-0/+4
|
* sys/darwin/foundation: fix Application->sendEvent signatureLaytan Laats2024-04-241-1/+1
|
* Core Foundation and Security vendor libraries.Vitalii Kravchenko2024-04-131-9/+6
|
* Move `vendor:darwin/Foundation` to `core:sys/darwin/Foundation`gingerBill2024-04-0832-0/+3488
|