mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[v2] ARM64 fixes
This commit is contained in:
@@ -1808,7 +1808,7 @@ void* NewApplication(const char *title, int width, int height, int resizable, in
|
||||
|
||||
result->running = false;
|
||||
|
||||
result->pool = objc_msgSend(c("NSAutoreleasePool"), s("new"));
|
||||
result->pool = msg_reg(c("NSAutoreleasePool"), s("new"));
|
||||
|
||||
return (void*) result;
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ id createMenu(id title) {
|
||||
id menu = ALLOC("NSMenu");
|
||||
msg_id(menu, s("initWithTitle:"), title);
|
||||
msg_bool(menu, s("setAutoenablesItems:"), NO);
|
||||
msg(menu, s("autorelease"));
|
||||
msg_reg(menu, s("autorelease"));
|
||||
return menu;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user