Search Unity

OSX Native plugin NSALERT freezes unity

Discussion in 'macOS' started by arkon, May 2, 2020.

  1. arkon

    arkon

    Joined:
    Jun 27, 2011
    Posts:
    1,122
    I'm dabbling with a native plugin in unity 2019, for Mac OS. So far I've got a native NSAlert modal dialog box to appear but when it does Unity freezes, I was expecting Unity to freeze until pressing the NSALERT ok button but when you press the ok button it doesn't dismiss the dialog box and Unity hangs. My code:

    in the .mm file the only thing i do is:-

    NSRunAlertPanel(@"Title", @"This is your message.", @"OK", nil, nil);

    Any ideas?