Post

Replies

Boosts

Views

Activity

Reply to Sonoma temp folder permission alert breaks XCUITest
Thanks! I've also noted that the alert only seems to appear when writing to a file using the NSData writeToURL:options:error: method with the NSDataWritingAtomic option. Not with options: set to 0. Not when writing to the same "illegal" directory with the NSFileWrapper writeToURL:options:originalContentsURL:error: method or NString writeToURL:atomically:encoding:error:.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Reply to App Store Connect Errors for embedded dylibs
Nope, everything is built from within Xcode. As I wrote, is seems to be the fact that the dynamic library targets had no entitlements files that confused the "sign for App Store" stage somehow, as simply adding those files fixed everything. If you are really interested, the full project is available here: https://github.com/angstsmurf/spatterlight/tree/appstore . Going back to the commit before the last should make the problems reappear. Note that only the appstore branch is signed and has everything properly set up for the App Store.
Feb ’23
Reply to App Store Connect Errors for embedded dylibs
This was solved in a reply on Stackoverflow (https://stackoverflow.com/questions/75422505/how-to-prevent-xcode-from-adding-malformed-entitlements-to-my-dylibs/75422519#75422519), which seems to be written by ChatGPT of all things. The problems seems to have been that my dylibs didn't have any .entitlements files. I created new ones, and in the review shown by Xcode before submitting the app, it seems as if the entitlements in them were stripped, which makes sense if dylibs are not supposed to have entitlements. What makes less sense is that they need entitlements files.
Feb ’23
Reply to NSTextView always uses system language when hyphenating?
I got this reply - https://stackoverflow.com/questions/67386175/nstextview-always-uses-system-language-when-hyphenating?noredirect=1#comment119156272_67386175 on StackOverflow: NSAttributedString reads the language from NSUserDefaults with key NSHyphenationLanguage. This is undocumented and may not work in every version of macOS. I guess that is as close to a fix for this as I am going to get.
Topic: App & System Services SubTopic: Core OS Tags:
May ’21
Reply to VoiceOver incorrect focus on modal alert
It seems this can happen if an alert is opened as a result of a menu selection, or if a new alert is opened immediately after closing an old one, and it seems to go away if I add a half-second delay before opening the new alert. I might make a bug report later.
Replies
Boosts
Views
Activity
Apr ’25
Reply to VoiceOver incorrect focus on modal alert
Additional info: I noticed that whenever this happens, there are two AXUIElementDestroyed notifications posted.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Sonoma temp folder permission alert breaks XCUITest
Thanks! I've also noted that the alert only seems to appear when writing to a file using the NSData writeToURL:options:error: method with the NSDataWritingAtomic option. Not with options: set to 0. Not when writing to the same "illegal" directory with the NSFileWrapper writeToURL:options:originalContentsURL:error: method or NString writeToURL:atomically:encoding:error:.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to NSTextView invisible in app, visible in Debug View Hierarchy
Basically, it is caused by the fact that NSView clipToBounds is set to NO by default in Sonoma, but in Debug View Hierarchy it is still drawn as if clipToBounds were set to YES. This is obviously an Xcode bug.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to NSTextView invisible in app, visible in Debug View Hierarchy
Seems that the image view at the top is for some reason drawn over the textview at the bottom. If I remove the image view, the text view is visible again.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to App Store Connect Errors for embedded dylibs
Right, I think I managed to file a bug report, with number FB11990678. https://feedbackassistant.apple.com/feedback/11990678
Replies
Boosts
Views
Activity
Feb ’23
Reply to App Store Connect Errors for embedded dylibs
Nope, everything is built from within Xcode. As I wrote, is seems to be the fact that the dynamic library targets had no entitlements files that confused the "sign for App Store" stage somehow, as simply adding those files fixed everything. If you are really interested, the full project is available here: https://github.com/angstsmurf/spatterlight/tree/appstore . Going back to the commit before the last should make the problems reappear. Note that only the appstore branch is signed and has everything properly set up for the App Store.
Replies
Boosts
Views
Activity
Feb ’23
Reply to App Store Connect Errors for embedded dylibs
This was solved in a reply on Stackoverflow (https://stackoverflow.com/questions/75422505/how-to-prevent-xcode-from-adding-malformed-entitlements-to-my-dylibs/75422519#75422519), which seems to be written by ChatGPT of all things. The problems seems to have been that my dylibs didn't have any .entitlements files. I created new ones, and in the review shown by Xcode before submitting the app, it seems as if the entitlements in them were stripped, which makes sense if dylibs are not supposed to have entitlements. What makes less sense is that they need entitlements files.
Replies
Boosts
Views
Activity
Feb ’23
Reply to How do we use NSOpenPanel in XCUITests?
Seems this broke in Monterey.
Replies
Boosts
Views
Activity
Oct ’21
Reply to NSTextView always uses system language when hyphenating?
I got this reply - https://stackoverflow.com/questions/67386175/nstextview-always-uses-system-language-when-hyphenating?noredirect=1#comment119156272_67386175 on StackOverflow: NSAttributedString reads the language from NSUserDefaults with key NSHyphenationLanguage. This is undocumented and may not work in every version of macOS. I guess that is as close to a fix for this as I am going to get.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to NSTextView always uses system language when hyphenating?
It was pointed out to me that the documentation for hyphenationFactor states "This property detects the user-selected language by examining the first item in preferredLanguages." So I guess there is no way to change this undesirable behaviour.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’21