• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inter-Application Communication in Cocoa ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inter-Application Communication in Cocoa ?


  • Subject: Re: Inter-Application Communication in Cocoa ?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 13 Sep 2002 13:54:36 -0700

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.

References: 
 >Re: Inter-Application Communication in Cocoa ? (From: Paul Collins <email@hidden>)

  • Prev by Date: Re: Scope of [NSMutableDictionary setObject:] in an array
  • Next by Date: Re: Bilingual shenanigans
  • Previous by thread: Re: Inter-Application Communication in Cocoa ?
  • Next by thread: RE: Inter-Application Communication in Cocoa ?
  • Index(es):
    • Date
    • Thread