mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-18 19:11:20 +00:00
pkg/objc: properties
This commit is contained in:
@@ -8,3 +8,13 @@ pub const Object = struct {
|
||||
|
||||
pub usingnamespace MsgSend(Object);
|
||||
};
|
||||
|
||||
test {
|
||||
const testing = std.testing;
|
||||
const NSObject = objc.Class.getClass("NSObject").?;
|
||||
|
||||
// Should work with our wrappers
|
||||
const obj = NSObject.msgSend(objc.Object, objc.Sel.registerName("alloc"), .{});
|
||||
try testing.expect(obj.value != null);
|
||||
obj.msgSend(void, objc.sel("dealloc"), .{});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user