ApplesauceOS
Read Markdown ↗Download .md

ObjC.C

Use the C client that shares this Objective-C session.

js
ObjC.C

Arguments

No arguments.

Returns

C client; ObjC.C is the same client as global C. app.C belongs to that remote ObjC client.

Example

js
const app = RemoteObjC.forApp("com.apple.Preferences");
const nativeC = app.C;
console.log(nativeC === RemoteC.forApp("com.apple.Preferences")); // true

Notes

Property, not a function. Closing either client invalidates their shared native references. Read C functions and memory for C signatures.

All JavaScript APIs · Automation playbook