In Windows platform a window has an attribute named SWP_NOACTIVATE that causes the window displayed inactive and also after mouse click, that window does not gain focus, It is useful for example to virtual keyboards that you can type by mouse click.
what is equivalent solution in Mac? In other words how can I implement a window that does not change focus on click it?
thanks.
In Windows platform a window has an attribute named SWP_NOACTIVATE that causes the window
Share
You’ll want to read Key and Main Windows in the Window Programming Guide. Briefly, create your own NSWindow subclass and override
-canBecomeKeyWindowand-canBecomeMainWindowso that both return NO: