Unity and NSApplicationDelegate

Can we implement “NSApplicationDelegate” in some way? There is no info regarding this, only threads with no responses from years ago.

I need it to implement URL Schemes in OSX app.

1 Like

bump! anyone?

Update: ended up writing a helper app with the wanted URI Scheme and passing it on to the actual game. Not ideal… Might figure out another way next week!

I managed to inject code into OSX players in a subtle way, so we can now extend NSApplicationDelegate and more. The OSX relevant part is at Override app delegate in Unity for iOS and OSX (4/4) Inject code to Mach-O binary, but there are meaningful considerations regrading iOS as well.

2 Likes

Thanks, really appreciated as a workaround but I hope that Unity implements this some day.

1 Like

Well, opening the OSX project source is a feature request since 2012. Probably there is a really small fraction of Unity users who want to really integrate stuff with OSX.

I began to prototype some productivity apps (clipboard, drag-and-drop, documents, etc.), now I have an option at least.