Post

Replies

Boosts

Views

Activity

Reply to Network framework on macOS
I did the test again on a different Mac on the same local network, this time running macOS 14.5. And then I saw the flowsw thing instead of 10 TCP sockets. Another difference between the machines is that the one running Ventura has an Intel CPU, while the one with Sonoma is M1.
May ’24
Reply to Network framework on macOS
By the way, since the skywalkctl command was recommended here, I want to make a couple of comments about it. First, it can only be run using sudo. Second, the man page says you can get help on a command using skywalkctl COMMAND help, but that doesn't work.
May ’24
Reply to Shutdown event in macOS
The documentation of NSWorkspaceWillPowerOffNotification says To receive this notification, use notificationCenter to register for it. If you use a different notification center to register, you won’t receive the notification. That is, when you add the observer, you need to use NSWorkspace.notificationCenter instead of NotificationCenter.default.
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’24
Reply to Cannot get NSTimer working in another thread
You need to run a run loop in your thread. See: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to How to provide thumbnails for system defined file types in MacOS application
Did you try QuickLook thumbnailing? I would have thought it would work. An alternative: -[NSWorkspace iconForFile:]
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Network framework on macOS
I tried Quinn's program once more under macOS 14.5 on my Intel-based Mac, and saw flowsw instead of 10 TCP sockets. So it appears that the difference is Sonoma versus Ventura.
Replies
Boosts
Views
Activity
May ’24
Reply to Is it possible for an app in the Mac App Store to obtain Accessibility permissions?
Yes, the Mac App Store mandates sandboxing, but no, sandboxing does not prohibit Accessibility permission. In fact I have two apps in the Mac App Store that can request and use Accessibility permission.
Replies
Boosts
Views
Activity
May ’24
Reply to Network framework on macOS
I did the test again on a different Mac on the same local network, this time running macOS 14.5. And then I saw the flowsw thing instead of 10 TCP sockets. Another difference between the machines is that the one running Ventura has an Intel CPU, while the one with Sonoma is M1.
Replies
Boosts
Views
Activity
May ’24
Reply to Network framework on macOS
By the way, since the skywalkctl command was recommended here, I want to make a couple of comments about it. First, it can only be run using sudo. Second, the man page says you can get help on a command using skywalkctl COMMAND help, but that doesn't work.
Replies
Boosts
Views
Activity
May ’24
Reply to Network framework on macOS
I tried Quinn's test program, and I did see 10 TCP sockets. MacOS 13.6.7. I have iCloud+ but had Private Relay turned off. (Private Relay is part of iCloud+). No VPN.
Replies
Boosts
Views
Activity
May ’24
Reply to Shutdown event in macOS
The documentation of NSWorkspaceWillPowerOffNotification says To receive this notification, use notificationCenter to register for it. If you use a different notification center to register, you won’t receive the notification. That is, when you add the observer, you need to use NSWorkspace.notificationCenter instead of NotificationCenter.default.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Issues while signing macOS app
In the first approach, do you see your imported certificate and private key under "My Certificates" in Keychain Access? Do you see your imported certificate in Xcode's Settings > Accounts when you click "Manage Certificates"?
Replies
Boosts
Views
Activity
May ’24
Reply to Problem with vImagePiecewiseGamma_Planar8
When I grep the sample code project for vImagePiecewiseGamma_Planar8, I get no hits. So in what sense is your code a translation?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Large array failure
Is the array allocated on the heap (e.g., with malloc) or on the stack? In the latter case, you may be exceeding the available size of the stack.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to error: unable to read property list from file:
I ran your file through plutil and it said Encountered unexpected character k on line 23 while looking for close tag That is, you're missing a left angle bracket in the string tag after CFBundleShortVersionString.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Where to find XCode13?
https://developer.apple.com/download/all/?q=xcode
Replies
Boosts
Views
Activity
Apr ’24
Reply to Accessibility API access from a command line macOS client
Does your command line tool have an embedded Info.plist? I would guess that Accessibility access is recorded by bundle ID.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Custom app not reading prefs since upgrade to Sonoma
Quoting the NSUserDefaults documentation: Important Don’t try to access the preferences subsystem directly. Modifying preference property list files may result in loss of changes, delay of reflecting changes, and app crashes. To configure preferences, use the defaults command-line utility in macOS instead.
Replies
Boosts
Views
Activity
Apr ’24