RE: Inter-Application Communication in Cocoa ?
RE: Inter-Application Communication in Cocoa ?
- Subject: RE: Inter-Application Communication in Cocoa ?
- From: Kevin Elliott <email@hidden>
- Date: Fri, 13 Sep 2002 15:39:59 -0700
>
> 2. Processes launched before user login (such as StartupItems daemons)
>
> cannot receive (or send?) distributed notifications. (maybe not a bug,
>
> but needs to be documented)
>
Ick. Does anyone know if the same is true for distributed objects?
-Kevin Elliott
Software Engineer
CharisMac Engineering
>
----------
>
From: Douglas Davidson
>
Sent: Friday, September 13, 2002 13:54
>
To: Paul Collins
>
Cc: email@hidden
>
Subject: Re: Inter-Application Communication in Cocoa ?
>
>
On Friday, September 13, 2002, at 12:58 PM, Paul Collins wrote:
>
>
> On Thursday, September 12, 2002, at 10:24 AM, Douglas Davidson wrote:
>
> > For broadcast local-machine communications, the natural choice would
>
> > be distributed notifications.
>
>
>
> This is what I thought, until I tried distributed notifications
>
> (NSDistributedNotificationCenter) yesterday (on 10.2 6C115) and found
>
> a couple of bugs, which I reported, and also found in the list
>
> archives. Are these really bugs, or did I do something wrong?
>
>
>
> 1. The "object" field (NSString *) is never delivered, it is <nil>
>
> upon reciept. (possibly the dictionary object could be used as a
>
> workaround).
>
>
That seems odd--do you have an example?
>
>
> 2. Processes launched before user login (such as StartupItems daemons)
>
> cannot receive (or send?) distributed notifications. (maybe not a bug,
>
> but needs to be documented)
>
>
Probably should be documented.
>
>
> 3. It was reported on this list earlier that apps launched as Login
>
> Items also had trouble using distributed notifications (I didn't
>
> confirm this).
>
>
I haven't seen any bugs about that, but it is conceivable there might
>
be a race condition if a notification were sent immediately after login.
>
>
> As my notification needs are quite simple, for IPC I'm setting up a
>
> couple of named pipes (FIFOs) for private notices between my daemon
>
> and user AppKit app. Distirbuted Objects might be easier, if they
>
> work, but I've done FIFOs before. These are documented in the book
>
> Advanced Programming in the UNIX Environment by Stevens, and Practical
>
> Unix Programming by Robbins.
>
>
Certainly the BSD-level mechanisms are available, if you are more
>
familiar with them.
>
>
Douglas Davidson
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.