Post

Replies

Boosts

Views

Created

communicating between agent and app
Hello guys, im new to programming and am creating an app which has 2 components an agent component which is always running in the background and a UI component which the user like any app can open and close it when they need it. Even if the app has been quit the agent continues to be run. for the sake of simplicity lets say the UI simply displays the data collected by the agent, and the agent updates its data every 5 seconds(data is stored in a dictionary, in the agents code), how will i update the UI to reflect the changes? also how will i get the values in the dictionary from my agent? i was thinking of either using xpc or writing to a file. I think i prefer XPC because its more efficient right?
1
1
355
May ’23