01-12-2021, 08:03 AM
Hello.
I am using CustomWidget and I was wondering if you could help me understand different behaviour on Big Sur compared to older macOS versions.
I am using CustomWidget to get platform widget and in the end get a window reference for rendering like this
NSView* pNSView = widget.platformWidget();
NSWindow* pNSWindow = [pNSView window];
WindowRef myWindowRef = (WindowRef)[pNSWindow windowRef];
Later it would be used in aglSetWindowRef function.
Normally this would result in a correct myWindowRef that I can later use. However on Big Sur myWindowRef is always 0 for some reason.
Could you help me understand why it behaves like this? Is there some difference in how widgets or windows work? Thank you.
I am using CustomWidget and I was wondering if you could help me understand different behaviour on Big Sur compared to older macOS versions.
I am using CustomWidget to get platform widget and in the end get a window reference for rendering like this
NSView* pNSView = widget.platformWidget();
NSWindow* pNSWindow = [pNSView window];
WindowRef myWindowRef = (WindowRef)[pNSWindow windowRef];
Later it would be used in aglSetWindowRef function.
Normally this would result in a correct myWindowRef that I can later use. However on Big Sur myWindowRef is always 0 for some reason.
Could you help me understand why it behaves like this? Is there some difference in how widgets or windows work? Thank you.