Post

Replies

Boosts

Views

Activity

Reply to Can applications communicate with each other directly by XPC if they are all in one bundle?
Hi @eskimo, About Notification, I thought if the observer is register with a specific name string and the sender post the notification with that string, all other applications will not receive or respond to the notification, right? Besides, the notification does not contain any data that have security risks. Actually there is no data to transmit, only simple events like click and quit. Under this condition, I think NSDistributedNotificationCenter will be neat and suitable candidate method consider the development cost.
Jun ’22
Reply to Issues updating to Xcode 26 -- can no longer successfully build project
Same here. Upgrade to XCode 26, encountered the same error. It seems error is within Swift Bridging header.
Replies
Boosts
Views
Activity
Oct ’25
Reply to macOS applicationDockMenu remove universal items in the app's dockTile
Or, can I set the callback of "Show All Windows" or "Hide" programmatically? Update: I just found applicationWillHide/DidHide to set the callback of "Hide" item. But seems like I can not abort or abort its hide process unless I set the "canHide" window I don't want hide to false.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Can applications communicate with each other directly by XPC if they are all in one bundle?
It does have potential security threats that if the attacker knows our notification name, he/she could intercepted and mock our messages to maliciously command the main process to quit. I think all we need to do is encrypt the command string.
Replies
Boosts
Views
Activity
Jun ’22
Reply to Can applications communicate with each other directly by XPC if they are all in one bundle?
Hi @eskimo, About Notification, I thought if the observer is register with a specific name string and the sender post the notification with that string, all other applications will not receive or respond to the notification, right? Besides, the notification does not contain any data that have security risks. Actually there is no data to transmit, only simple events like click and quit. Under this condition, I think NSDistributedNotificationCenter will be neat and suitable candidate method consider the development cost.
Replies
Boosts
Views
Activity
Jun ’22
Reply to Can applications communicate with each other directly by XPC if they are all in one bundle?
I finally decide to go NSDistributedNotificationCenter way. Because in our scenarios, messages and applications do not have states. I actually made a demo to test its performance and resource cost. Found out it is quite reliable. For anyone interested in the performance of NSDistributedNotificationCenter:
Replies
Boosts
Views
Activity
May ’22
Reply to Can applications communicate with each other directly by XPC if they are all in one bundle?
Forget to mention, all apps are non-sandboxed. I am seeking the most feasible and low cost means.
Replies
Boosts
Views
Activity
May ’22
Reply to XCode 13 Not reporting accurate test Covarage
My solution: If you have flag "GCC_GENERATE_TEST_COVERAGE_FILES=YES" specified in xcodebuild arguments, remove it in XCode 13. It seems like this will extract coverage data out of "*.xcresult" files in xcode 13.
Replies
Boosts
Views
Activity
May ’22
Reply to XCode 13 Not reporting accurate test Covarage
Tried the script above, it didn't work.
Replies
Boosts
Views
Activity
May ’22