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 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