gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Method "registerTheme" is not implemented in library. #336

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just call that method : "[CPTTheme registerTheme:[myTheme class]];"

What is the expected output? What do you see instead?
The new theme should be registered. I see "+[CPTTheme registerTheme:]: 
unrecognized selector sent to class"

What version of the product are you using? On what operating system?
0.9, iOS

Please provide any additional information below.
If I will use "[CPTTheme addTheme:myTheme];" everything works fine.

Original issue reported on code.google.com by extremen...@gmail.com on 29 Sep 2011 at 8:49

GoogleCodeExporter commented 9 years ago
-addTheme: was removed between 0.4 and 0.9. You must be linking against an old 
copy of Core Plot. If you're building from source, do a clean build with the 
0.9 sources. Otherwise, check that the Core Plot library linked to your project 
is the 0.9 version.

Original comment by eskr...@mac.com on 29 Sep 2011 at 10:13

GoogleCodeExporter commented 9 years ago
I'm using library that was included in 0.9 archive.

Original comment by extremen...@gmail.com on 30 Sep 2011 at 6:26

GoogleCodeExporter commented 9 years ago
I just tried this with a test app and the 0.9 release library. It worked fine 
for me. I made a CPTTheme subclass with the following methods and everything 
worked as expected:

+(void)load
{
    [self registerTheme:self];
}

+(NSString *)name 
{
    return kTestTheme;
}

Make sure you've purged all old copies of the Core Plot library from your 
system and do a clean build.

Original comment by eskr...@mac.com on 1 Oct 2011 at 11:53

GoogleCodeExporter commented 9 years ago
Thanks for your answers. The problem was at my side. I don't know why but only 
after I've added whole project (CorePlot) to my own project everything starts 
working well.

Original comment by extremen...@gmail.com on 17 Oct 2011 at 6:10

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 17 Oct 2011 at 11:08