I have restricted Internet access so I can't check the API to verify the method signature but at least I can help with the constant issue.

It should read KCPDarkGradientTheme and not kCPDarkGradientTheme.
This is because in Ruby all constants have to start by a capital letter.

- Matt

Sent from my iPhone

On Nov 10, 2010, at 13:49, Russ McBride <russ@psyex.com> 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)
=> false




On 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.plotRangeWithLocation

and
           CPDecimalFromFloat

Cheers,
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