Documentation
¶
Overview ¶
Package pureobjc provides the runtime support layer for purego-based macOS framework bindings. It exposes retain/release/track helpers and string conversion utilities that generated packages import. Zero CGo dependency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToObjC ¶
BoolToObjC converts a Go bool to the ObjC BOOL representation (1 or 0).
func GoCString ¶
GoCString builds a Go string from the address of a null-terminated C string. Generated block adapters use it to convert char* block arguments (purego block callbacks cannot take string parameters directly).
func NSErrorToError ¶
NSErrorToError converts an NSError ObjC object to a Go error. The returned error is *objcerrors.ObjCError; use errors.As to access structured fields such as Domain, Code, and FailureReason.
func NSString ¶
NSString converts a Go string to an autoreleased NSString object. The returned ID is autoreleased; retain it if you need it to outlive the current autorelease pool drain.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package objcerrors provides ObjCError, a structured Go error that preserves the full diagnostic payload of an Objective-C NSError: domain, code, localized strings, and any chain of underlying errors.
|
Package objcerrors provides ObjCError, a structured Go error that preserves the full diagnostic payload of an Objective-C NSError: domain, code, localized strings, and any chain of underlying errors. |