[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] graphic interfaces in objective-C



Miguel,

concerning the Objective-C (mainly more Objective-C++), unless you want to create very specific views, or link against a special framework that SuperCollider
does not integrate directly ( for example using a special CoreAnimation view ), i won't advice you to go this way.

As thor said using Supercollider's SCPen (since we are speaking about OS X) has much bindings to the Quartz rendering functions, trying to create a custom view this way is really much much faster + you have SCImage to give you access to image drawings + other caching techniques. (i even use sometime supercollider for rapid prototyping for some external Cocoa stuff / views).

You will not only need Objective-C skills but also C++ ones. Coding a custom view in SuperCollider won't really improve your Cocoa-only skills since it does not use the same model : a supercollider view is not a NSView, SuperCollider UI architecture/hierarchy is not a mirror of the Cocoa view architecture/hierarchy. Integrating a Cocoa view in SuperCollider is not easy. If you want your view to integrate correctly in Supercollider you will have also to conform to the SuperCollider way to handle events in your view...ect...

another problem with going ObjC / Cocoa is that you have to build and maintain your own custom version of SuperCollider app. you cannot share easily your custom widget too... with Pen, UserView (SCImage is OS X only) you can also share your work for different platforms, have a great support during development. With Objc you it will be difficult to have the same support as devs are quite busy. You may end up reading much code to achieve what you want and try to figure out things on your own.

As a side note, the language plugins might offer you a way to create new primitives and new views. But again it is not part of the distro so you have to build and maintain your own version. And actually it is being also re-designed to a plain C interface, wich will allow the use of C++ or Objective-C wrapper client side, so may be worth waiting for this new issue :)

just my opinion
hope that will help

best,
charles



Le 17 juin 09 à 11:48, thor a écrit :


Hi Miguel

I think you have some options. Rob's Objective-C Cocoa path, but 
(and since you mention the ixiQuarks) you can also build your interface
with SuperCollider itself. 

Using the Pen, UserView and SCImage, you can do almost anything.
(check the helpfiles). - Also check the ixiViews classes for examples.

Furthermore, Charles and Blackrain just released a version of SC
where you can build language plugins for SuperCollider. That might
be the 3rd alternative.

And then you can of course use Java/SwingOSC, but you stated that
you wanted to use Cocoa, so I mention this just for completion's sake.

Good luck
Thor



On 17 Jun 2009, at 10:10, Miguel Cardoso wrote:

Hi Rob,
 
Thanks for the info :D 

Let's see how I go along the way :)



all the best
miguel


On Jun 16, 2009, at 10:55 PM, Rob Watson wrote:

Hi Miguel

The process I described in the blog post is the only logical way I know of. I was pretty much an Objective-C beginner when I wrote that, too.

I'd love to hear of any more straightforward approaches too. But I think it's a case of getting your hands dirty

The advantage is that you learn a lot about Objective-C (and SuperCollider)

Good luck ..

Rob




2009/6/16 Miguel Cardoso <mcardoso@xxxxxxxxxxxxx>
Hello List,

I'm interested in developing graphic interfaces in Cocoa for some of my SC classes, and if someone could give me some guidelines I'd be grateful.

I began studying objective-C, and looking for example at Thor Magnusson's ixiQuarks, I can't figure out which is the next logic step to start developing such interfaces.

In the web I found a reference to http://blog.rfwatson.net/2009/03/11/building-cocoa-extensions-for-supercollider/ but I'm not sure this is the logic way!!


All the best,
Miguel
.
.
.
.
.
http://www.344server.org
+351 96 566 57 48
.
http://www.last.fm/music/Miguel+Cardoso
mail: mcardoso@xxxxxxxxxxxxx
msn: mcardoso@xxxxxxxxx
chat: mmcvirus
skype: mcardoso_soopa.org


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/


.
.
.
.
.
+351 96 566 57 48
.
chat: mmcvirus
skype: mcardoso_soopa.org