flysand7
70bd4a5ab6
Only build vendor:darwin on darwin
2023-10-29 15:03:48 +11:00
Lucas Perlind
92b24fd02d
Further improve on NSBlock
...
* Correct setting the isa of the NSBlock
* Make global blocks managed by the odin runtime
* Make local blocks copy to a malloc block that is managed by the objc runtime
* Add method to create blocks that take a paramater
2023-09-06 15:03:17 +10:00
Lucas Perlind
747116aeb0
Add more darwin bindings
2023-08-31 17:37:32 +10:00
Lucas Perlind
46e7fa52b3
Add more NS bindings and correctly link NS block
2023-08-30 10:18:17 +10:00
Lucas Perlind
29f7eaad78
Correct run loop linking
2023-08-25 13:46:03 +10:00
gingerBill
8f086a6957
Add NSSet
2023-08-24 23:31:21 +01:00
gingerBill
8f512001b6
Shut up the type checker
2023-08-24 16:49:56 +01:00
gingerBill
1d25522a3b
Update vendor:darwin/Foundation to implement Event, Color, Screen, and other fixes
2023-08-24 16:43:13 +01:00
Lucas Perlind
edcd335b90
Always include Cocoa for NSFoundation
2023-08-21 11:36:39 +10:00
gingerBill
9aed26a234
Remove the use of import within when
2023-08-04 15:54:44 +01:00
gingerBill
d82bfa98a7
Remove redundant comments
2023-06-07 23:01:08 +01:00
gingerBill
7958708641
Add missing class method to NS.Number
2023-05-22 20:43:41 +01:00
gingerBill
9fc9981a9e
Update calling convention to the most appropriate
...
- "odin" if the `context` is needed for `assert`
- "contextless" if multiple return values are needed (better for optimizations)
- "c" otherwise
2023-05-22 15:04:33 +01:00
gingerBill
8f563df7c5
Use proc "c" calling convention in NS Foundation package
2023-05-22 14:59:24 +01:00
gingerBill
730192adc4
Add procedure groups for Device_newBuffer and Texture_newTextureView
2023-05-22 14:51:46 +01:00
gingerBill
827f36e2c0
Update to Metal 3
2023-04-26 15:28:30 +01:00
Colin Davidson
4d74d5bc99
Add user-defaults config to enable force-smooth-scrolling for SDL
2023-02-18 19:54:40 -08:00
Colin Davidson
ed371f2b0d
Add open file dialog panel to foundation
2023-02-18 14:56:51 -08:00
gingerBill
d50c6d72db
Merge pull request #2310 from Lperlind/staging/ns-application-delegate-fix
...
Fix a few bindings in NSApplicationDelegate
2023-01-19 11:03:21 +00:00
Lucas Perlind
f040ef41cb
Fix a few bindings in NSApplicationDelegate
2023-01-19 21:18:30 +11:00
Lucas Perlind
91ab184175
Fully implement NSWindowDelegate
2023-01-19 19:12:14 +11:00
Lucas Perlind
fed65742df
(almost) Fully implement NSApplicationDelegate
2023-01-17 18:53:17 +11:00
Jan Ivanecky
6ae8adaa45
Add NSWindow::content_layout_rect
2022-11-17 17:57:34 -05:00
Julian Ceipek
8ceb691cec
Fix indentation
2022-10-20 21:38:43 -04:00
Julian Ceipek
f26516f6fa
Add objc_registerClassPair to allow subclassing
2022-10-20 21:18:11 -04:00
Julian Ceipek
fda8e8a30b
Use c.size_t to match C declaration more directly
2022-10-20 21:16:53 -04:00
Julian Ceipek
2242178d96
Fix signature for objc_allocateClassPair
2022-10-20 21:07:14 -04:00
Julian Ceipek
63086c7eaf
Use NS.BOOL instead of bool
2022-10-09 14:31:26 -04:00
Julian Ceipek
ef0c6fc4b3
Fix signature for shouldTerminateAfterLastWindowClosed delegate proc
2022-10-08 23:52:12 -04:00
Jan Ivanecky
141133e326
Add class_getInstanceMethod, method_setImplementation bindings
2022-10-08 16:29:49 +02:00
Jan Ivanecky
5362e883f4
Add additional NSWindow methods
2022-10-08 00:47:42 +02:00
gingerBill
ad98efe1fd
Revert "Remove the workaround for NSWindow initWithContentFrame"
2022-09-09 10:47:02 +01:00
Hasen Judy
e6b91d3d7c
Remove the workaround for NSWindow initWithContentFrame
...
Reverts #1841
Resolves #1825
2022-09-06 16:56:17 +09:00
Hasen Judy
4be92c7eb8
HACK work around for creating a cocoa window
...
See #1825 for more details.
This does not fix the underlying issue; it's merely a work around for
this specific manifestation of the bug.
2022-06-10 17:10:00 +09:00
gingerBill
fc3f62e3ed
Minor rearrangement
2022-04-15 11:50:08 +01:00
gingerBill
6b7c04e046
Improve utilities
2022-04-15 11:33:28 +01:00
gingerBill
cfeb16f917
Add more proc groups
2022-04-15 11:20:42 +01:00
gingerBill
9a2d9002e6
Minor fixes and add use of proc groups where better suited
2022-04-15 11:14:59 +01:00
gingerBill
ea0b02d9b9
Add Buffer contentsAsSlice and contentsAsType
2022-04-14 16:42:24 +01:00
gingerBill
0d621511e5
Correct signature types
2022-04-14 16:16:53 +01:00
gingerBill
e53c858855
Add NS.Block to allow for the creation of block-like lambdas in Odin
2022-04-14 15:47:49 +01:00
gingerBill
51db46551e
Add MetalKit; Add NSApplication NSMenu NSMenuItem; Improve Metal classes
2022-04-14 15:03:47 +01:00
gingerBill
e6a7b85da4
Correct types
2022-02-21 20:49:59 +00:00
gingerBill
6145185478
Add missing return types
2022-02-21 16:04:56 +00:00
gingerBill
4c62a32b04
Keep -vet happy
2022-02-18 16:13:52 +00:00
gingerBill
7e33a86d54
Remove unneeded semicolon
2022-02-18 16:01:11 +00:00
gingerBill
197b832992
Add vendor:directx and vendor:darwin packages for documentation generation
2022-02-18 15:56:53 +00:00
gingerBill
0e69993d39
Add init and copy to all Objects
2022-02-16 00:17:07 +00:00
gingerBill
135091ddbe
Correct import paths
2022-02-16 00:14:16 +00:00
gingerBill
d64e3b672c
Add darwin build tags
2022-02-16 00:12:31 +00:00