The following is an example showing use of
CFMessagePort to send information cross process, between applications. In the case of this example, from a Xamarin.Mac C# program to a running Objective-C program.
The example is based off the Inter-Process Communication article by Mattt Thompson.
Note: There are a few binding that are used in the article that are not currently available in Xamarin.Mac. These are being tracked by this Bugzilla defect.
Running this Example
Follow these instructions to run this sample:
- Build and launch MessageReceiver first (via XCode)
- Build and launch MessageSender (via Xamarin Studio)
- Type a string in the MessageSender and hit the Send button
- The message will appear in the MessageReceiver application