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 Simulate sending key to an NSView on a macOS application
You could create an NSEvent and use the sendEvent method of NSApplication.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to NSTextView find and replace custom dialog
Override performFindPanelAction: in some class in the responder chain. In your override, if [sender tag] is NSTextFinderActionShowFindInterface, present your custom find panel. See the NSTextFinderAction enumeration for other possible actions.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to How to install an Xcode version compatible with macOS 14.6?
You mean 13.6, there is no 14.6. Either Xcode 14.x or Xcode 15 will work on Ventura. Don't worry about .xip, if you double-click it, the Archive Utility will decompress it.
Replies
Boosts
Views
Activity
Oct ’23
Reply to Is app-sandbox entitlement required for appstore ?
Yes, sandbox is required for the App Store. You need to read some documentation: https://developer.apple.com/documentation/security/app_sandbox/accessing_files_from_the_macos_app_sandbox
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Can defaults command on macOS read app group preferences?
I forgot that I posted this question, and posted a similar question again: https://developer.apple.com/forums/thread/738561 This time I got a reply from an Apple engineer, saying that the defaults tool predates app groups, and they have a bug on file asking for an update.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to AppKit does not allow directory to be selected
Set the allowedContentTypes property, e.g., panel.allowedContentTypes = @[ UTTypeFolder ];
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’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 PDF reading using PDFKit cannot render some text in iOS 17
Does it happen on macOS?
Topic: App & System Services SubTopic: Core OS 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
Reply to transparent window can't click through in macos sonoma
You may want to set the ignoresMouseEvents property of the window.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to CarbonAPI DebugStr() deprecation
You can write to the console log using NSLog or os_log. What programming language are you using?
Replies
Boosts
Views
Activity
Sep ’23
Reply to Auto-Update macOS app outside of MacAppStore
For the first thing, finding the running app’s own location, you can use NSBundle.mainBundle.bundleURL. Typed from memory, away from my Mac.
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Program not handling NSWorkspaceDidLaunchApplicationNotification events as desired
Instead of NSNotificationCenter.defaultCenter, use NSWorkspace.sharedWorkspace.notificationCenter.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’23