Post

Replies

Boosts

Views

Activity

Comment on Get executable path from audit token provided by NEFilterDataProvider
Thanks for your help. I forgot to mention that I'm running that code from inside the main app, with the data forwarded from the extension. I'm using SecCodeCopyPath now, but there still seem to be processes that do not return a path, like trustd, rapportd, nsurlsessiond and timed. Is there an explanation for that? Also I don't understand why apps returned a path and executables didn't, if the app sandbox should prevent me from accessing anything on disk.
Mar ’23
Comment on Reading Finder Info ATTR_CMN_FNDRINFO with getattrlistbulk
Thanks for your input. I would also rather use FileManager, but not all file properties I need are available on all macOS versions I'm currently supporting. In particular, the file identifier or inode, URLResourceKey.fileIdentifierKey, was only recently added in macOS 13.3, almost 3 years after I filed the enhancement request with Feedback Assistant. I understand that it would be sufficient to pass one of those structs to readUnaligned. What would be the correct way of importing them?
Topic: App & System Services SubTopic: General Tags:
Apr ’23
Comment on Setting URLResourceKey.fileSecurityKey raises error on some systems
Thanks for your help. During my own tests I could never reproduce an error, regardless whether the permissions were successfully set (on my boot drive) or not (on the external exFAT drive). I would just like to avoid attempting to set the permissions if it will result in an error. Do you think checking for ‘.volumeSupportsExtendedSecurityKey’ should be enough? In my case it returns ‘false’ but attempting anyway doesn’t result in an error, but maybe it would avoid errors on other systems?
Topic: App & System Services SubTopic: General Tags:
Apr ’23
Comment on How to install macOS 14 Sonoma or 13 Ventura on an external partition
I tried reinstalling Ventura on my external partition from the recovery one and it seemed to prepare the installation just fine, but then it rebooted into my main Ventura partition. Selecting the newly created Ventura partition from the startup disks makes the indeterminate progress indicator spin for a couple seconds, then it disappears again and nothing happens, just like when installing Ventura with the dmg installer. In my case, installing Ventura or Sonoma seems impossible.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’23
Comment on Get executable path from audit token provided by NEFilterDataProvider
Hi, sorry for my late answer. It seems that the developer forums started again not sending notifications for replies. That was indeed a copy-paste error. The original code is identical with the one I posted here except for return nil which really is return url.path. I also noticed another typo: I wrote "have a non-nil path" but of course it should be "have a nil path". I just checked again on macOS 14 and trustd is still insecure, along with wifivelocityd and fmfd.
Oct ’23
Comment on Get executable path from audit token provided by NEFilterDataProvider
Thanks for your help. I forgot to mention that I'm running that code from inside the main app, with the data forwarded from the extension. I'm using SecCodeCopyPath now, but there still seem to be processes that do not return a path, like trustd, rapportd, nsurlsessiond and timed. Is there an explanation for that? Also I don't understand why apps returned a path and executables didn't, if the app sandbox should prevent me from accessing anything on disk.
Replies
Boosts
Views
Activity
Mar ’23
Comment on Xcode UI testing right-to-left language but UI is left-to-right
Thanks, those arguments solve the issue. I'm writing a test to create screenshots for all the localizations, one after the other. From what I know and see in the linked page, a test plan allows to set a custom language, but doesn't allow to go through all the localizations, right?
Replies
Boosts
Views
Activity
Mar ’23
Comment on Override user default in UI test with key containing whitespaces
It works, thank you! I didn't try the most simple thing because I assumed that the arguments would not be parsed correctly, but I was wrong.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Reading Finder Info ATTR_CMN_FNDRINFO with getattrlistbulk
Thanks for your input. I would also rather use FileManager, but not all file properties I need are available on all macOS versions I'm currently supporting. In particular, the file identifier or inode, URLResourceKey.fileIdentifierKey, was only recently added in macOS 13.3, almost 3 years after I filed the enhancement request with Feedback Assistant. I understand that it would be sufficient to pass one of those structs to readUnaligned. What would be the correct way of importing them?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Setting URLResourceKey.fileSecurityKey raises error on some systems
Thanks for your help. During my own tests I could never reproduce an error, regardless whether the permissions were successfully set (on my boot drive) or not (on the external exFAT drive). I would just like to avoid attempting to set the permissions if it will result in an error. Do you think checking for ‘.volumeSupportsExtendedSecurityKey’ should be enough? In my case it returns ‘false’ but attempting anyway doesn’t result in an error, but maybe it would avoid errors on other systems?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Error when trying to set access permissions of file owned by user
This is a similar issue to my other thread, but not really related. This issue I can reproduce on my own Mac, and everyone else probably could as well. The output of ls -l for the source directory: total 0. For the destination directory: total 0 -rw-r--r--@ 1 nicolaskick staff 0 8 Apr 11:56 destination. What other APIs would you use?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Components of NSDatePicker inside NSTableView cannot be selected
I just added the elements in the storyboard and implemented NSTableViewDataSource.numberOfRows(in:). Not sure what you mean with "right parts of the protocols".
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on SecItemCopyMatching doesn't find key stored with SecItemAdd
Thanks, it worked! I had wrongly assumed that leaving kSecAttrSynchronizable away from the copy call would automatically match all existing entries, but the documentation actually explains this.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’23
Comment on Get the file size of a file in iCloud Drive
I already filed a bug report FB11944561 in January 2023 mentioning this issue and just filed another explicit issue FB12224338. Since Apple is aware of this problem, I don't think anybody should use a TSI, or buy extra TSIs, to get a solution.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Get the file size of a file in iCloud Drive
Thanks for posting your solution! Is there a specific low-level file API that you used? Did you parse the file as text with a specific encoding?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on How to install macOS 14 Sonoma or 13 Ventura on an external partition
Did you just download the Ventura installer and ran it? Because as I wrote in the original post, I wasn't able to install Ventura either.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on How to install macOS 14 Sonoma or 13 Ventura on an external partition
I tried reinstalling Ventura on my external partition from the recovery one and it seemed to prepare the installation just fine, but then it rebooted into my main Ventura partition. Selecting the newly created Ventura partition from the startup disks makes the indeterminate progress indicator spin for a couple seconds, then it disappears again and nothing happens, just like when installing Ventura with the dmg installer. In my case, installing Ventura or Sonoma seems impossible.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Determinate spinning NSProgressIndicator doesn't adapt to frame size and gets cut off
Thanks, that's it. Since the indeterminate spinning one worked with every size, I assumed that this would be the right way to size the determinate one as well, but using controlSize effectively works for both.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on UISplitViewController displays button to change the display mode even when presentsWithGesture = false
Thanks, but what has the backAction got to do with the split view controller? The documentation says that if presentsWithGesture = false there will be no button for changing the display mode.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Get executable path from audit token provided by NEFilterDataProvider
Hi, sorry for my late answer. It seems that the developer forums started again not sending notifications for replies. That was indeed a copy-paste error. The original code is identical with the one I posted here except for return nil which really is return url.path. I also noticed another typo: I wrote "have a non-nil path" but of course it should be "have a nil path". I just checked again on macOS 14 and trustd is still insecure, along with wifivelocityd and fmfd.
Replies
Boosts
Views
Activity
Oct ’23