Re: Talking to other apps
Re: Talking to other apps
- Subject: Re: Talking to other apps
- From: Alex Zavatone <email@hidden>
- Date: Mon, 04 Aug 2014 14:02:39 -0400
If you want to go down the sockets path, there are clear examples on using NSStream, sockets and Bonjour to send info between apps that are on the same Mac. Check out the PictureSharing sample and other NSStream samples that are included in the Xcode help.
All I had to do to get this to work was to change the name of the folder that specified the pictures transmitted and pictures directory on lines 163 and 173 in ServerAppDelegate.m file.
The project is a 2 app workspace that sends a picture from one app to another on the same Mac.
It might be overkill, but it does the trick.
Hope this helps,
Alex Zavatone
On Aug 4, 2014, at 1:41 PM, Scott Ribe wrote:
> On Aug 4, 2014, at 11:23 AM, Gerriet M. Denkmann <email@hidden> wrote:
>
>> I mean two apps, which are both written (and thus can be modified) by me.
>> I really should have mentioned this in my original post. Sorry about this.
>
> Showing my age here, but as an old UNIX troll, and assuming the apps are not sandboxed, I'd just use domain sockets.
>
> <https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man4/unix.4.html>
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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