Post

Replies

Boosts

Views

Activity

Reply to Why is Xcode 15 giving me deprecated code errors?
The warnings tell you that they are triggered by the compiler flag -Wdeprecated-builtins, so if you compile with the flag -Wno-deprecated-builtins, they should go away. Possibly Xcode 15 might have a checkbox for that flag; I’m not at a Mac right now. But if there’s no checkbox, you can use an “other c++ flags“ or something in the build settings.
Sep ’23
Reply to CGDisplayRotation Hangs.
The fact that CGDirectDisplayID is the same type as uint32_t does not mean that every uint32_t value is a legitimate display ID. If you want to find out something about displays, you should first get the display IDs of interest, with calls such as CGGetActiveDisplayList, CGGetOnlineDisplayList, or CGGetDisplaysWithPoint. By the way, since CGDisplayRotation is not behaving as documented, I filed a bug report, FB13202169.
Topic: Graphics & Games SubTopic: General Tags:
Sep ’23
Reply to CGDisplayRotation Hangs.
When I tried your code in Xcode, it hung in the CGDisplayRotation(0) call. But when I changed that to CGDisplayRotation( CGMainDisplayID() ), it ran fine. What are you trying to accomplish by passing 0 as the display ID? Granted, the documentation says that it should return 0 if you pass an invalid display ID, but why tempt fate?
Topic: Graphics & Games SubTopic: General Tags:
Sep ’23
Reply to Why is Xcode 15 giving me deprecated code errors?
The warnings tell you that they are triggered by the compiler flag -Wdeprecated-builtins, so if you compile with the flag -Wno-deprecated-builtins, they should go away. Possibly Xcode 15 might have a checkbox for that flag; I’m not at a Mac right now. But if there’s no checkbox, you can use an “other c++ flags“ or something in the build settings.
Replies
Boosts
Views
Activity
Sep ’23
Reply to CGDisplayRotation Hangs.
The fact that CGDirectDisplayID is the same type as uint32_t does not mean that every uint32_t value is a legitimate display ID. If you want to find out something about displays, you should first get the display IDs of interest, with calls such as CGGetActiveDisplayList, CGGetOnlineDisplayList, or CGGetDisplaysWithPoint. By the way, since CGDisplayRotation is not behaving as documented, I filed a bug report, FB13202169.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to CGDisplayRotation Hangs.
When I tried your code in Xcode, it hung in the CGDisplayRotation(0) call. But when I changed that to CGDisplayRotation( CGMainDisplayID() ), it ran fine. What are you trying to accomplish by passing 0 as the display ID? Granted, the documentation says that it should return 0 if you pass an invalid display ID, but why tempt fate?
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to transparent window can't click through in macos sonoma
I found an old sample project that draws a round window: https://www.cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html It's old, so it needs a few obvious changes to make it compile with a recent Xcode. But it does work in a Sonoma beta. You may want to see how this compares with your code.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’23