eoinnorris / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CorePlot framework latest revisions don't compile on Base SDK Mac OS X 10.6 #427

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. In Xcode 4.x select "CorePlot project" 
2. Select TARGETS > "CorePlot" > Set "Base SDK" to "Mac OS X 10.6" and "Debug" 
or "Release" Version
3. Compile Target CorePlot

What is the expected output? What do you see instead?

The CorePlot framework should be compiled for Mac OS X 10.6 Base SDK but it 
gives errors in CPTCalendarFormatter.m:

Use of undeclared identifier 'NSWeekMonthCalendarUnit" ... property weekOfMonth 
not found on object type NSDateComponents

#if MAC_OS_X_VERSION_10_7 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_5_0 <= 
__IPHONE_OS_VERSION_MAX_ALLOWED
        case NSWeekOfMonthCalendarUnit:
            dateComponents.weekOfMonth = componentIncrement;
            break;

        case NSWeekOfYearCalendarUnit:
            dateComponents.weekOfYear = componentIncrement;
            break;

        case NSYearForWeekOfYearCalendarUnit:
            dateComponents.yearForWeekOfYear = componentIncrement;
            break;
#endif

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

Coreplot revision r=5594d6838a93d28e15b614277add4621d7757348 on Mac OS X 10.7.3
but need the framework for Mac OS X 10.6 too.

Please provide any additional information below.
This worked before (Coreplot 1.0)

Original issue reported on code.google.com by celgil...@gmail.com on 17 Apr 2012 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 17 Apr 2012 at 10:05