maaaaark
2005.06.01, 11:02 AM
I'm currently in need of some interprocess communication with two programs that need to relay small values between each other. without a named mutex option (via pthreads) i have narrowed my choices down to:
1. IPC
2. Distributed Notifications
3. AppleEvents
I was investigating IPC. It looks relatively low level, which is okay, but I'm thinking for my needs it may be overkill? Distributed Notifications is looking like my best bet so far... the only question that comes to mind is if I launch a child program and send it a notification, can I do it *instantly* after I make a NSTask for it, or would I have to sleep for a few. I haven't even looked at AppleEvents. Apple stated in documentation that this is the preferred way of interprocess communication--so I'll probably side with this. I'm just looking if anyone has any advice or has used any of these there before.
Any comments / suggestions will be very helpful. Thanks.
1. IPC
2. Distributed Notifications
3. AppleEvents
I was investigating IPC. It looks relatively low level, which is okay, but I'm thinking for my needs it may be overkill? Distributed Notifications is looking like my best bet so far... the only question that comes to mind is if I launch a child program and send it a notification, can I do it *instantly* after I make a NSTask for it, or would I have to sleep for a few. I haven't even looked at AppleEvents. Apple stated in documentation that this is the preferred way of interprocess communication--so I'll probably side with this. I'm just looking if anyone has any advice or has used any of these there before.
Any comments / suggestions will be very helpful. Thanks.