Commit Graph

170 Commits

Author SHA1 Message Date
Jeroen van Rijn 9c810e8340 Fix #5366 2025-06-19 22:46:51 +02:00
Jeroen van Rijn 4b36306674 Deprecate old @(deprecated) things. 2025-06-06 10:42:34 +02: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
Jeroen van Rijn d6210ae76f Fix -vet complaints in core:sys/darwin/Foundation 2025-05-17 16:36:10 +02:00
gingerBill 5454e120fe Add NSMenuItem.odin 2025-05-17 13:27:54 +01:00
gingerBill d77124feae Add Objective-C helper for creating subclasses 2025-05-17 11:36:24 +01:00
Laytan Laats cacb9f9f54 os2: better copy_directory, and add native copy_file and copy_directory variants on MacOS 2025-05-08 19:32:30 +02:00
Harold Brenes 040d8b1d48 Fix 2 selectors in NSDictionary 2025-04-17 15:22:10 -04:00
Keenan Woodall a709876788 SavePanel_URL returns ^URL instead of ^Array 2025-02-23 19:00:27 -06:00
gingerBill dc7cd21986 Merge pull request #4782 from Daxode/nsstring-appendingstring
Add stringByAppendingString to NSString
2025-02-02 07:01:16 +00:00
daniel.andersen c8a537aad9 Add stringByAppendingString to NSString 2025-02-02 03:26:07 +01:00
duffn af63db5075 Fix tab indents in NSSavePanel 2025-01-29 16:06:19 -07:00
gingerBill 0e27acd755 Update NSSavelPanel 2025-01-28 11:38:06 +00:00
Samuel Elgozi 0f12618642 fix incorrect use of Bool 2025-01-18 21:08:54 +02:00
Samuel Elgozi 3fb766f98d updated to meet formatting style 2025-01-17 13:43:34 +02:00
Samuel Elgozi 19d6c01f0f Added Foundation bindings 2025-01-17 10:42:32 +02:00
Laytan Laats ad80aa6d28 sys/info & odin report: rework macos version retrieval 2024-11-26 22:28:21 +01:00
Sebastian Pahnke 395fa7fdb8 Add NSApplication bindings for mainWindow and keyWindow 2024-11-13 14:42:31 +01:00
Beau McCartney e240c034de aliases to enum members are other enum members, not constants 2024-10-12 20:11:46 -06:00
Beau McCartney 77cf4373a8 sync policy enum 2024-10-10 11:24:55 -06:00
Beau McCartney 4fffd1b271 kern return: doc comments above enum members 2024-10-10 11:12:42 -06:00
Beau McCartney 66c902406d align by space instead of colon 2024-10-10 11:09:06 -06:00
Beau McCartney 3aae1740c7 proc ( -> proc( 2024-10-10 11:03:55 -06:00
Beau McCartney b0ff41e673 indent with tabs not spaces 2024-10-08 19:08:13 -06:00
Beau McCartney 41c717de3f vm_flags as a bitset 2024-10-08 19:08:13 -06:00
Beau McCartney fee99c0800 move doc comment to right spot 2024-10-08 13:41:13 -06:00
Beau McCartney 58745bc7ae use b32 for boolean_t 2024-10-08 13:39:53 -06:00
Beau McCartney 27753ff7a8 VM_INHERIT_* as an enum 2024-10-08 12:51:18 -06:00
Beau McCartney 9004441e43 VM_PROT_* flags as a bitset 2024-10-08 12:51:12 -06:00
Beau McCartney 2695b269a4 kern return as an enum 2024-10-08 12:44:49 -06:00
Beau McCartney 67252ff415 make some types and procs match the c apis
procs:
| type          | old  | new (matching c api)|
| ---           | ---- | ------------------- |
| kern_return_t | u64  | c.int               |
| thread_t      | u64  | mach_port_t         |
| task_t        | u64  | mach_port_t         |
| semaphore_t   | u64  | mach_port_t         |

for mach_task_self(), return mach_port_t instead of task_t

for semaphore_signal_thread(), accept a thread_t instead of a thread_act_t
2024-10-08 12:12:21 -06:00
Beau McCartney db8950922c add mach_port_deallocate - frees the port from mach_make_memory_entry() 2024-10-07 15:48:24 -06:00
Beau McCartney 7b1086b489 make aliases of vm types not distinct
I think they're meant to be used interchangeably, just typedefed to have more
clear names for certain contexts
2024-10-07 14:24:38 -06:00
Beau McCartney f858374ef2 small cleanup 2024-10-07 11:45:45 -06:00
Beau McCartney eaafe92402 remove vm_flags_t - not in the original sdk 2024-10-07 11:45:24 -06:00
Beau McCartney 15d70390e5 add missing trailing comma 2024-10-06 23:29:34 -06:00
Beau McCartney 75c5cf3e80 indent with tabs, not spaces 2024-10-06 23:02:36 -06:00
Beau McCartney 609eb00335 remove note comments 2024-10-06 22:47:46 -06:00
Beau McCartney 2fc04f29c8 make extra types distinct to fit existing types 2024-10-06 22:47:20 -06:00
Beau McCartney 5c0c1287dc put function parameters on the same line where possible to fit style 2024-10-06 22:45:10 -06:00
Beau McCartney ac4f4e883a group type definitions 2024-10-06 22:41:42 -06:00
Beau McCartney 80c390e851 add mach procedures and vm_page_size
- vm_allocate()
- vm_deallocate()
- vm_map()
- mach_make_memory_entry()
2024-10-06 22:08:23 -06:00
Beau McCartney a205bcd0da add VM_INHERIT constants 2024-10-05 11:19:10 -06:00
Beau McCartney 27daebf46c add vm_prot_t constants 2024-10-05 11:18:32 -06:00
Beau McCartney 04ddcc5e64 add VM_FLAGS constants 2024-10-05 11:17:37 -06:00
Beau McCartney 7eabb1d744 add KERN_RETURN constants 2024-10-05 11:15:29 -06:00
Beau McCartney 3c2efb24b7 some mach types 2024-10-05 11:11:42 -06:00
Beau McCartney 2181a42bbf rename mach import cause its not just for threads now 2024-10-05 11:09:58 -06:00
Karl Zylinski 093ade0504 Merge branch 'master' into file-tags-without-comments 2024-09-17 19:36:17 +02:00
Laytan Laats 0975820c48 fix wrong ulock timeout calculation, add version check for ios 2024-09-17 15:52:35 +02:00