Cool. How do you run these examples? I don't see any XCode project files?

On 07/08/2010, at 20.32, Larry Staton Jr. wrote:

> All -
> 
> I'm freshening up on my Core Animation by translating the code from
> Bill Dudney's "Core Animation" book:
> <http://github.com/statonjr/macruby-coreanimation>
> 
> I've run across an interesting method signature that I can call, but
> I'm wondering if my way is the best way to call it.
> 
> Here's the method signature from the CAMediaTimingFunction class:
> 
> - (id)initWithControlPoints:(float)c1x :(float)c1y :(float)c2x :(float)c2y
> 
> Yes, that's "initWithControlPoints::::"
> 
> Here's what I'm using:
> 
>    tf = CAMediaTimingFunction.alloc
>    tf.send "initWithControlPoints::::".to_sym, c1x, c1y, c2x, c2y
>    moveAnimation.timingFunction = tf
> 
> Is there a better way? I just feel like I'm missing something.
> 
> Warm regards,
> 
> Larry
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to