[MacRuby-devel] Unnamed Selectors

Emil Tin emil at tin.dk
Sat Aug 7 16:18:23 PDT 2010



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 at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1920 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100808/c4b9b988/attachment-0001.bin>


More information about the MacRuby-devel mailing list