Hi Russ,_______________________________________________I suspect this CorePlot framework does not include a BridgeSupport file. This could explain why MacRuby cannot use the CPDecimalFromFloat() C function or the kCPDarkGradientTheme C constant (note that it must be called KCPDarkGradientTheme from MacRuby, as constants must always start with a uppercase letter).You can try to generate a BridgeSupport file using gen_bridge_metadata(1). Check out the end of the man page for examples. The generated file should be installed within the framework.LaurentOn Nov 10, 2010, at 11:49 AM, Russ McBride wrote:_______________________________________________Hmm ... I think I've got some linking/import issues, although the framework is found.>> framework 'cocoa'=> true>> framework 'coreplot'=> true>> graph = CPXYGraph.alloc.initWithFrame(CGRectMake(0,0,0,0))=> #<CPXYGraph:0x20054cb00>>> plotSpace = graph.defaultPlotSpace;=> #<CPXYPlotSpace:0x20051d360>>> axisSet = graph.axisSet=> #<CPXYAxisSet:0x2005229c0>>>So good, so far, but...>> x = 4.2=> 4.2>> x.class=> Float>> z = CPDecimalFromFloat(x)NoMethodError: undefined method `CPDecimalFromFloat' for main:TopLevel>> theme = CPTheme.themeNamed(kCPDarkGradientTheme)NameError: undefined local variable or method `kCPDarkGradientTheme' for main:TopLevel>> CPTheme.method_defined?(:themeNamed)=> falseOn Nov 10, 2010, at 12:50 AM, Eloy Duran wrote:Can you provide a code snippet (irb) reproducing the exact problem you are experiencing?_______________________________________________On Nov 10, 2010, at 5:59 AM, Russ McBride wrote:_______________________________________________Has anyone gotten CorePlot working in a MacRuby app?I'm working on re-writing the DatePlot app in MacRuby and have had limited success, but I'm currently stuck with problems surrounding:CPPlotRange.plotRangeWithLocationandCPDecimalFromFloatCheers,russ
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel