Alfie703
Alfie703

Reputation: 41

Xcode 7.0.1 coreplot 2.0 Sending 'NSDecimal' to parameter of incompatible type 'NSNumber * _Nonnull'

I'm a newbie in Xcode, I need help in debugging an existing code written in older version Xcode and coreplot. I'm currently using Xcode 7.0 and coreplot 2.0. I'm getting error message

Sending NSDecimal to parameter of incompatible type NSNumber * _Nonnull

at the following code:

thePlotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0) length:CPTDecimalFromInteger([xArray count]+1+1)];

thePlotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(0) length:CPTDecimalFromFloat(countGraphNames+1)];

Upvotes: 4

Views: 734

Answers (1)

Jackson
Jackson

Reputation: 3567

You need to upgrade to CorePlot 2.x and change the call CPTDecimalFromFloat to [NSNumber numberWithFloat:0].

Upvotes: 6

Related Questions