login

ProxyFactory

To start building the GUI for rubyk, I decided to first implement an iPhone remote because:

  1. I know objective C and iPhone development is very well documented (not like juce).
  2. It will raise all the problems of a remote gui without involving the full complexity of a desktop application
  3. It’s network based and fun

add device

The first problem I fell upon was how to build the proxy tree and manage the asynchronous calls (update and change value). It took me some time but I finally wrapped my head around the idea of a ProxyFactory that you sub-class in your specific gui environment, providing the necessary hooks to build the gui widgets.

add_device

Add a device (part of the ProxyFactory pattern).

sync

Here is the list of commands (part of oscit protocol) that are used to build the proxy tree.

sync

Sync states between a remote and a proxy.

change value

And finally, this is what happens when values are changed:

change_value

Value change notifications between a remote and a proxy.

coding time

I started writing the tests for this setup. The code will be part of the liboscit library.

comments

  1. leave a comment