I’m having one error and one warning concerning the usage of the ‘GetTiming()’ function. My colde is as follows:
[values addObject:[NSNumber numberWithFloat:25.0]];
[timings addObject:GetTiming(kCAMediaTimingFunctionEaseIn)];
[keytimes addObject:[NSNumber numberWithFloat:0.0]];
I am importing the following:
#import <QuartzCore/CAAnimation.h>
#import <QuartzCore/CAMediaTimingFunction.h>
The error I suppose is due to the fact that I’m using ARC, and says:
implicit conversion of 'int' to 'id' is disallowed with ARC.
I tried to disable ARC in the concerning file but the error persists.
About the warning, it says:
implicit declaration of function 'GetTiming' is invalid in C99
Any one have any ideas on how can I fix these issues?
Thanks a lot!
First make sure that the
GetTimingfunction exists (include the right header). Now ifGetTimingreturns anintthe problem is you can not add a primitive value to an array. You need to wrap the value returned in anNSNumber.Edit:
You are missing the function that was declared in
JackController.m.For simplicity do not use that function, just create it directly.