So this post is about the first step, getting an NSNotification to work within a running app. The following is from an Xcode Cocoa-Python app, and in AppDelegate.py we have:
There's a button in the window hooked up to the IBAction. I push the button and get:
But I couldn't get it to work between apps, for example with this one compiled in Terminal:
I asked on Stack Overflow (here), and they say I should be using Distributed Objects (here). So I have to look into that.
[ UPDATE: Just substitute NSDistributedNotificationCenter in the code above. It works! ]