• Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Hot Door CORE Forum All forums Bugs v
1 2 3 Next »
Widget structure and MacOS Big Sur

 
  • 0 Vote(s) - 0 Average
Widget structure and MacOS Big Sur
Sergiy
Offline

Junior Member

Posts: 1
Threads: 1
Joined: Jan 2021
Reputation: 0
#1
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.
garrett
Offline

Super Moderator

Posts: 248
Threads: 24
Joined: Nov 2013
Reputation: 1
#2
01-18-2021, 12:26 PM
We haven't used such functionality in any plugins on Big Sur, so can't comment on why you're experiencing that issue - especially given that, at the end you're calling a pure-OS method (NSWindow's windowRef).

My guess would be that something changed, or Big Sur simply has a bug, regarding Cocoa-Carbon integrations. The WindowRef type is from Carbon, which has slowly been getting deprecated and removed by Apple over the years.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

Linear Mode
Threaded Mode