• 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: Paul Collins <email@hidden>
  • Date: Fri, 13 Sep 2002 12:58:33 -0700

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).

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)

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).

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.

Paul Collins
Gracion Software
_______________________________________________
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.

  • Follow-Ups:
    • Re: Inter-Application Communication in Cocoa ?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: contextual menu and NSTextField
  • Next by Date: Re: limit text input in NSTextView
  • Previous by thread: Re: Inter-Application Communication in Cocoa ?
  • Next by thread: Re: Inter-Application Communication in Cocoa ?
  • Index(es):
    • Date
    • Thread