Post

Replies

Boosts

Views

Activity

Reply to Toll-free bridging
I don't think the second snippet would be fixed by writing NSString *ns = (__bridge_transfer NSString *)CFBridgingRelease(string); because as far as I know, __bridge_transfer is basically the same as CFBridgingRelease. The problem with the second snippet is that when the local variable ns goes out of scope, the string will be released, but the local variable string is not set to nil, hence CFRelease will be passed a bad pointer.
Topic: App & System Services SubTopic: General Tags:
Mar ’23
Reply to How to find culprit when stuck in SecureInput mode?
Thanks, Quinn!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Toll-free bridging
I don't think the second snippet would be fixed by writing NSString *ns = (__bridge_transfer NSString *)CFBridgingRelease(string); because as far as I know, __bridge_transfer is basically the same as CFBridgingRelease. The problem with the second snippet is that when the local variable ns goes out of scope, the string will be released, but the local variable string is not set to nil, hence CFRelease will be passed a bad pointer.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Notarizing application for public release
For notarizing, you should use a "Developer ID Application" certificate.
Replies
Boosts
Views
Activity
Mar ’23
Reply to Allow screen shot updates with out new versions
You should send that request to Apple using Feedback Assistant, a more official channel for such things.
Replies
Boosts
Views
Activity
Mar ’23
Reply to Don't know how to use Xcode on M2 Mac Mini
I've never seen the problem you describe, but if the Issue Navigator panel isn't working, you could look in the Report Navigator. But also use Feedback Assistant to file a bug report.
Replies
Boosts
Views
Activity
Mar ’23
Reply to How to get/track the active app name from the background app on Mac using SwiftUI?
I don't speak Swift, but the frontmostApplication property of NSWorkspace should give you what you want.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to how to get appstore url , before submit a app to App Store ?
When I try using the "short link" method in the accepted reply, the Mac App Store app goes into an infinite loop of "Cannot Connect to App Store" error messages.
Replies
Boosts
Views
Activity
Mar ’23
Reply to notarytool rejects bundle with non-ascii filename
This is not the place to ask Apple to fix a bug. Use Feedback Assistant.
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to How to get the bundle identifier of the app bundle dragged into an NSTableView?
Have you gotten as far as getting an NSURL from the drop? Once you have that, create an NSBundle from it, and then can get the bundle identifier.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Code Signature Invalid for MacOS app
If you want to release "without hosting to app store", why would you select App Store Connect?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Background Tasks for macOS
There are several kinds of "daemons" and "agents" that can run in the background on macOS. Here's some documentation: Daemons and Services Programming Guide
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Capture screenshot in MacOS App issue
Try calling CGRequestScreenCaptureAccess before the other stuff. That’s probably needed to do screen capture from within the sandbox.
Replies
Boosts
Views
Activity
Feb ’23
Reply to Disable pop-up asking "...would like to access files in your Documents folder"
Is your executable an application? Is it code signed?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Capture screenshot in MacOS App issue
What have you tried, CGDisplayCreateImage? You may also need CGPreflightScreenCaptureAccess and CGRequestScreenCaptureAccess.
Replies
Boosts
Views
Activity
Feb ’23
Reply to MacOS: Notarize App without XCode
In https://developer.apple.com/download/all/ you can find "command line tools for Xcode 14.2".
Replies
Boosts
Views
Activity
Feb ’23