Re: Distributed Notifications to C / C++ applications
Re: Distributed Notifications to C / C++ applications
- Subject: Re: Distributed Notifications to C / C++ applications
- From: Jens Alfke <email@hidden>
- Date: Sat, 29 Mar 2008 19:57:57 -0700
On 29 Mar '08, at 6:51 PM, Rick Langschultz wrote:
I am looking to create an application written in C / C++ that will
send notifications to a Cocoa application and the Cocoa application
will communicate back. Since I am using multiple server environments
will / is this possible? Or should I just stick with Cocoa shell
tools to accomplish this?
Mach ports are probably the best way to do this. The "Advanced Mac OS
X Programming" book covers them, including how to use them from Cocoa
APIs.
(I did this using Unix domain sockets, for PubSub, which initially
seemed simpler but got fairly complex due to security issues. The
socket actually exists in the filesystem, and you have to be very
careful about where to put it, to avoid allowing unauthorized
processes to access it.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden