How do you write this in rubymotion?

59 views
Skip to first unread message

ChrisR

unread,
Jun 19, 2012, 8:47:20 PM6/19/12
to rubym...@googlegroups.com
What is the rubymotion equivalent of : 

 layer.edgeAntialiasingMask = kCALayerLeftEdge | kCALayerRightEdge | kCALayerBottomEdge | kCALayerTopEdge

specifically, the | syntax.

Thanks in advance
Chris

Aaron H

unread,
Jun 19, 2012, 10:03:18 PM6/19/12
to rubym...@googlegroups.com
Exactly the the same but use a capital K for each.

layer.edgeAntialiasingMask = KCALayerLeftEdge | KCALayerRightEdge | KCALayerBottomEdge | KCALayerTopEdge

I'm not 100% certain if this will currently work in the REPL (it depends on if a known issue has been corrected yet).  
Reply all
Reply to author
Forward
0 new messages