문제

Is there a simple way that I can make my application's floating tool palettes permanently active? They are all relevant to the open document, so there is no reason for them to be inactive at any point in time.

도움이 되었습니까?

해결책

Use NSPanel for the utility window. That way the panel can also properly hide when the app is not active (it's a flag, though).

Consider making it 'Non-Activating':

If the receiver is a non-activating panel, then it becomes key only if the hit view returns YES from needsPanelToBecomeKey. This way, a non-activating panel can control whether it takes keyboard focus.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top