• 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: Launch, connect, communicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launch, connect, communicate


  • Subject: Re: Launch, connect, communicate
  • From: Andrew Keller <email@hidden>
  • Date: Tue, 16 Aug 2016 15:14:10 -0400

Am 16.08.2016 um 8:35 vorm. schrieb Jens Alfke <email@hidden>:
> On Aug 15, 2016, at 7:26 PM, Andrew Keller <email@hidden <mailto:email@hidden>> wrote:
>>
>> 1. If the main Plot app is _not_ running in the current Aqua session, then launch a new copy in the current Aqua session.
>> 2. Open some sort of a socket to the main Plot app in the current Aqua session.
>> 3. Accept numbers on stdin, and forward them through the socket to the main Plot app.
>> 4. When stdin is exhausted, exit.
>
> AppleEvents is the right tool for this. Just pack the numbers into an array in an AEDesc, and send it in a custom AppleEvent to your app.

Interesting — Thanks, Jens.  Looks like that might work nicely for most of my needs.  Do you happen to know if there are any bandwidth concerns?  Eventually, I will be interested in streaming numbers to the main Plot app for real-time display.  I suspect I could simply divide the stream into hunks, and use a series of AppleEvents to send them.  Do you foresee any issues with that approach?

Thanks,
 - Andrew Keller

_______________________________________________

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


References: 
 >Launch, connect, communicate (From: Andrew Keller <email@hidden>)
 >Re: Launch, connect, communicate (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Resizing NSScrollView/NSClipView to fit NSTableView width
  • Next by Date: Re: Justification of collection cells in sections
  • Previous by thread: Re: Launch, connect, communicate
  • Next by thread: Re: Launch, connect, communicate
  • Index(es):
    • Date
    • Thread