How to make resizing cursors for a floating inactive panel?

I have a floating NSPanel that is not activated, i.e. it styleMaskcontains a flag NSNonactivatingPanelMask. Since this panel never becomes active, the system does not show normal resizing cursors when it approaches one of the edges of the panel.

Is there any way that these resize pointers are displayed for a non-activated panel? For instance. the system font panel somehow disables this.

+3
source share
1 answer

[NSFontPanel sharedFontPanel].styleMask == (NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask | NSUtilityWindowMask). However, it shows resizing indicators, even if you add NSNonactivatingPanelMask.

[NSFontPanel sharedFontPanel].hidesOnDeactivate = NO , . , .

, , , , , . .

0

All Articles