Skip to content

Commit

Permalink
Update objc.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach authored Aug 23, 2023
1 parent b9b9394 commit 1efa832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objc.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ defmodule HelloObjC do
[NSApp activateIgnoringOtherApps:YES];
NSAlert *alert = [[NSAlert alloc] init];
[alert setMessageText:@"Hello from ObjC!"];
[alert addButtonWithTitle:@"Ok"];
[alert addButtonWithTitle:@"OK"];
[alert runModal];
return NULL;
}
static ERL_NIF_TERM hello(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
erl_drv_steal_main_thread((char *)"hello", &hello_thread, hello_main_loop, (void *) NULL,NULL);
erl_drv_steal_main_thread((char *)"hello", &hello_thread, hello_main_loop, (void *)NULL, NULL);
erl_drv_stolen_main_thread_join(hello_thread, NULL);
return enif_make_atom(env, "ok");
}
Expand Down

0 comments on commit 1efa832

Please sign in to comment.