Page 1 of 1

Mac equivalent for broadcasting custom message

Posted: Wed Nov 30, 2016 11:48 am
by coder14
In windows I use RegisterWindowMessage_ and SendMessageTimeout_ to "communicate" between programs. Is there a way to do this in Mac OS-X?

Re: Mac equivalent for broadcasting custom message

Posted: Wed Nov 30, 2016 12:46 pm
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/

Re: Mac equivalent for broadcasting custom message

Posted: Wed Nov 30, 2016 1:54 pm
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:

Re: Mac equivalent for broadcasting custom message

Posted: Fri Dec 02, 2016 7:14 am
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.

Re: Mac equivalent for broadcasting custom message

Posted: Wed Feb 15, 2017 1:58 am
by deseven
You can use AppleScript to communicate between your programs. No signing required.