Brian Campbell
lambd****@conti*****
Fri Nov 2 12:42:08 JST 2007
Hmm. Now I get the following error: 2007-11-01 23:36:16.007 RubyCocoaTest[6105:10b] FancyRubyView#awakeFromNib: NameError: uninitialized constant KCAConstraintMidX Is there something I have to do to load the definitions from QuartzCore.bridgesupport? On Nov 1, 2007, at 11:20 PM, Laurent Sansonetti wrote: > Try OSX::KCAConstraintMidX > > Constants and enumerations that have a name starting with a lower > letter cannot be mapped in Ruby, because Ruby restricts them to start > with a capital letter. > > This is not documented though... I should write about it in the > wiki :-) > > Regarding the list, -devel is normally for RubyCocoa developers, not > users. But it's not really a big deal (to me) to ask questions here. > > Laurent > > On Nov 1, 2007, at 5:11 PM, Brian Campbell wrote: > >> I've been playing around with Core Animation using the RubyCocoa >> bundled with Leopard. It's pretty neat, but I've run into the problem >> that the Core Animation enums, like kCAConstraintMidY, are not >> defined >> in RubyCocoa. It looks like they're defined in the >> QuartzCore.bridgesupport file within the QuartzCore framework, but if >> I try and access OSX::kCAConstraintMidX, I get an error: >> >> 2007-11-01 17:01:30.488 RubyCocoaTest[5597:10b] >> FancyRubyView#awakeFromNib: NameError: undefined method >> `kCAConstraintMidX' for OSX:Module >> >> Am I not accessing these correctly? If not, is there somewhere where >> it's documented how to access them? >> >> Also, is this the right list to be asking these sorts of questions, >> or >> should I be asking on the -talk list? >> >> _______________________________________________ >> Rubycocoa-devel mailing list >> Rubyc****@lists***** >> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel > > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel