NSWindow does not activate

I create a window in an auxiliary tool that runs in the background (this is not an application package with .niband Info.plist, but a simple executable file). When called -makeKeyAndOrderFront:, a window is displayed, but it does not “pop up” like an active window.

Can this be fixed?

Regards, Erik

+3
source share
1 answer

You should wrap the auxiliary tool as a regular set .app, at least with Info.plist. Then the problem goes away. A GUI application in OS X must have Info.plistevents to receive correctly.

, GUI , , . , , OS X. , OS X. , , .

, - , , ., , WxWidgets wiki. -, OS X , .app , , . TransformProcessType .app, , , , / .

, .app.

Update:

" " activationPolicy , . NSApplication. Cocoa .

+1

Source: https://habr.com/ru/post/1765539/


All Articles