Skip to content

Add Objective-C bridge sample #8

Description

@Jesssullivan

Goal

Show how an Objective-C or Cocoa-adjacent application can call the stable zig_notify.h C ABI.

Context

The repo has a C example, but no Objective-C bridge sample yet. This is a documented Apple interop gap.

Docs: https://transscendsurvival.org/zig-notify/guides/apple-interop/

Scope

  • Add a small Objective-C command-line sample or documented snippet that links libzig-notify.a.
  • Demonstrate zig_notify_init, zig_notify_send, and zig_notify_deinit.
  • Note that the current macOS backend uses osascript and ignores urgency.
  • Do not add AppKit, SwiftUI, Cocoa, or UserNotifications.framework dependencies.

Validation

  • zig build -Doptimize=ReleaseFast
  • zig build example
  • Compile the Objective-C sample or document the exact compile command.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions