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 Background processing options for Mac App Store apps?
An app for the Mac App Store must be a single app package, but that package can contain nested helpers of various kinds including app packages. And an app store app can contain a login item, but I was told that it can't be required. I think that's in the review guidelines somewhere. My app AutoPairs has radio buttons in the user interface, where one can choose to run the program only when the UI app is open, or always when logged it. I don't use XPC (I use distributed notifications and shared user defaults), but I think you can. You'll be signing the whole package, including any helpers, with the same app store signature.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’24
Reply to Help interpreting crash report, is KVO involved?
@Justin said: Typically we would expect to see objc_msgSend at the top of the stack trace when a crash occurs due to messaging a deallocated object. Since I originally wrote this post, I updated my app to be universal, and I'm still getting these crash reports. Here's the start of the backtrace, now showing objc_msgSend: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x19f716290 lookUpImpOrForward + 72 1 libobjc.A.dylib 0x19f715f64 _objc_msgSend_uncached + 68 2 AppKit 0x1a3453e54 -[NSControl currentEditor] + 56 3 AppKit 0x1a344ba14 -[NSControl _setWindow:] + 48 4 AppKit 0x1a34ee160 -[NSSegmentedControl _setWindow:] + 52 5 AppKit 0x1a3ebbeb4 __21-[NSView _setWindow:]_block_invoke.146 + 268 6 AppKit 0x1a34344a4 -[NSView _setWindow:] + 1780 7 AppKit 0x1a3ebbeb4 __21-[NSView _setWindow:]_block_invoke.146 + 268 8 AppKit 0x1a34344a4 -[NSView _setWindow:] + 1780 9 AppKit 0x1a3618a70 -[NSWindow dealloc] + 684 A full crash report: crashlog2024-04-14 08-21-26.crash
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’24