Network Broadcaster and Receiver & cocoa application

akaioni's picture

Some things I found out about network broadcaster and receiver when I aimed to export my quartz in cocoa. Didn't find these topic on this and few other forums. I must say I'm noob in cocoa part, still get confused bout QCRenderer and all (not that I'm advanced in quartz but nonetheless cocoa makes me confused). The idea I'm aiming for = have 2 applications that communicate with eah other over the network, one is like a remote control(sender) the other is like a screen(receiver). The two compositions are normally working opened in quartz, so the time of exporting to cocoa comes.

1.Both compositions loaded in QCView -> in separate cocoa files, after building application nothing works 2.Both compositions (in separate cocoa project files) land in QCpatchContoller, export to an application. The send application can load a file but the receiver doesn't react, receiver starts to react when I open a send application in Quartz Composer 3.Both compositions loaded in QCPatchController are in the same Xcode project,after exporting the application works. Well, it's still not the most responsive code I've seen

Maybe I did a very roundabout way to do this, and maybe there is an easier way to do all of that which would be great to know. Also I did not test can the application communicate when is used in a network, any advice on that.

I enclose screenshots of compositions in quartz and the working application

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

akaioni's picture
Re: Network Broadcaster and Receiver & cocoa application

I check between two computers in one network, works, but it downloads an image so the string has to be the same for 2 ppl, like url

dust's picture
Re: Network Broadcaster and Receiver & cocoa application

I use osc sender and receiver for this type of thing. spooky send and receive will send images between composition if they are I the same thread meaningnif you build one application that uses two comps not two different apps and you can send images around. it's just as easy to bounce start and stop or what ever else via osc.

gtoledo3's picture
Re: Network Broadcaster and Receiver & cocoa application

Wouldn't you just make separate sender and receiver apps? I've tested that and it works fine.

akaioni's picture
Re: Network Broadcaster and Receiver & cocoa application

wohoa ; .. ; then I have to go back to testing, probably some weird misteak

akaioni's picture
Re: Network Broadcaster and Receiver & cocoa application

I re tried everything, made a string of all the data I'm sending and receiving for network broadcaster, my friend checked and Network Broadcaster is more efficient that OSC in our composition