Mac equivalent for broadcasting custom message

Mac OSX specific forum
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Mac equivalent for broadcasting custom message

Post by coder14 »

In windows I use RegisterWindowMessage_ and SendMessageTimeout_ to "communicate" between programs. Is there a way to do this in Mac OS-X?
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Mac equivalent for broadcasting custom message

Post by Keya »

havent done any IPC myself on Mac yet but looks like quite a few options to choose from
http://nshipster.com/inter-process-communication/
https://macdevelopers.wordpress.com/cat ... ation-ipc/
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Re: Mac equivalent for broadcasting custom message

Post by coder14 »

Keya wrote:havent done any IPC myself on Mac yet but looks like quite a few options to choose from
http://nshipster.com/inter-process-communication/
https://macdevelopers.wordpress.com/cat ... ation-ipc/
That seems like the one. But how to use them in PureBasic? :shock:
coder14
Enthusiast
Enthusiast
Posts: 327
Joined: Tue Jun 21, 2011 10:39 am

Re: Mac equivalent for broadcasting custom message

Post by coder14 »

After reading a bit on IPC it seems that your app must be signed in order to do IPC. Not worth the effort. :lol:

I only wanted to tag a running instance of my app to pass it the new parameters, but that is solved.
User avatar
deseven
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: Mac equivalent for broadcasting custom message

Post by deseven »

You can use AppleScript to communicate between your programs. No signing required.
Post Reply