GitShow/mitchellh/zig-objc
mitchellh

zig-objc

Objective-C runtime bindings for Zig (Zig calling ObjC).

by mitchellh
Star on GitHubFork

Zig

350 stars48 forks10 contributorsQuiet · 5mo agoSince 2023MIT

Meet the team

See all 10 on GitHub →
mitchellh
mitchellh77 contributions
Nirlah
Nirlah7 contributions
robbielyman
robbielyman6 contributions
emilazy
emilazy2 contributions
francisqureshi
francisqureshi2 contributions
ritalin
ritalin2 contributions
amitayas
amitayas2 contributions
der-teufel-programming
der-teufel-programming1 contribution

Languages

View on GitHub →
Zig97.9%
Nix1.9%
Shell0.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 3 in progress · Last activity 5mo ago
See all on GitHub →
loftafi
How do you read parameters in a callback function?OpenIssue

I've been poking around the code and struggling to work out how to read the parameters in a callback function handler. Given I cant find an example, I am not sure where to start. I am at the point where I am able to get the objc bluetooth api to report back discovery of bluetooth devices. But how do I extract the information? (My long term goal is to eventually have a zig cross platform bluetooth api, just working on it on the side when I have time.) For reference, here is how I am setting up this callback handler to be called:

loftafi · 6d ago
loftafi
Support Zig 0.17 (not backwards compatible with 0.16)OpenPR

This patch includes everything needed for 0.17 as of today. Use instead of Update how functions/fields are reflected (i.e. becomes and , etc...) It works at least for the objc calls that my app uses, but it could definitely do with a code review. This is not backwards compatible.** So once it is applied the branch will no longer be compatible with 0.16.

loftafi · 2mo ago
ali-shahwali
Replace `**` syntax with `@splat`OpenPR

As of https://codeberg.org/ziglang/zig/pulls/32130 being merged, array multiplication with syntax is no longer part of the language. This PR replaces the two usages of it in with .

ali-shahwali · 4mo ago

Recent fixes

View closed PRs →
loftafi
How to access `enum` values and provide a `completionHandler`? (Request iOS local notification permission)ClosedIssue

I have been exploring if I can use to replace my clunky swift side build. I first checked to see if there was sample code that might demonstrate the intent for how we would access enum values (to create an ) and how to provide a Any input would be greatly appreciated. PS: By way of feedback, I wonder if we could get an folder for to demonstrate some more advanced basic patterns like this. Thanks for your work on this cool zig project.

loftafi · 4mo ago
lolzdev
Fix compilation on Zig 0.16MergedPR

I chaged to and , fixed , updated the code to the new and did some other minor things to make everything work on 0.16.

lolzdev · 4mo ago
ulzu
`block.zig`: `descCopyHelper` parameters are swapped.ClosedIssue

https://github.com/mitchellh/zig-objc/blob/f356ed02833f0f1b8e84d50bed9e807bf7cdc0ae/src/block.zig#L123-L135 this function must correspond to the signature of https://github.com/mitchellh/zig-objc/blob/f356ed02833f0f1b8e84d50bed9e807bf7cdc0ae/src/block.zig#L260 (as per Its signature is instead – the parameters are swapped. I could not find the definition of , but in its uses, the first argument does come from , the second comes from , so the call in seems to be correct.

ulzu · 5mo ago
Structured data for AI agents

Repository: mitchellh/zig-objc. Description: Objective-C runtime bindings for Zig (Zig calling ObjC). Stars: 350, Forks: 48. Primary language: Zig. Languages: Zig (97.9%), Nix (1.9%), Shell (0.2%). License: MIT. Open PRs: 3, open issues: 1. Last activity: 5mo ago. Community health: 42%. Top contributors: mitchellh, Nirlah, robbielyman, emilazy, francisqureshi, ritalin, amitayas, der-teufel-programming, Uzaaft, cherrythecool.

·@ofershap

Replace github.com with gitshow.dev