From: Motohiro T. <mo...@gm...> - 2007-07-15 15:39:49
|
> This looks weird and unusual. I feel too :) I don't have any resources to grub QCPatch design cause that is not publicized by Apple ;) Everything I know so far is a collection of lots of web searches and observations of QuartzComposer behavior.It seems the QuartzComposer framework collects all ports by their names (prefixed by input/output) when a QCPatch instance is initialized. Anyway, If adding/removing ports at any runtime is available by some API, that will be enough for me. I will try digging more. Cheers, 2007/7/16, Laurent Sansonetti <lsa...@ap...>: > This is unfortunately not supported yet :( > > However, I don't really know QCPatch, but is it really necessary to > provide instance variables in the superclass? This looks weird and > unusual. Generally in superclasses you provide methods but not > instance variables. > > Do you have a pointer to the mechanism behind QCPatch and this > instance variable stuff? I could not find on google. > > Thanks, > Laurent > > On Jul 15, 2007, at 4:50 PM, Motohiro Takayama wrote: > > > Hi, > > > > I want to publish some member variables in Ruby class to Objective-C. > > How can I do that ? > > > > in QuartzComposer framework, member named "input***" in custom class > > are automatically detected at runtime, like this: > > > > @interface MyCustomPatch : QCPatch > > { > > QCStringPort *inputFoo; > > } > > > > I wrote Ruby class like: > > > > class MyRubyCustomPatch < OSX::QCPatch > > attr_accessor :inputFoo > > ... > > end > > > > but "inputFoo" is not detected. > > > > I tried to wrote *.h for MyRubyCustomPatch class in Objective-C to > > publish inputFoo, but it was no use... > > > > > > sorry for my continuous posts. m(_ _)m > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |