I'm trying to incorporate a standard C-array of floats into a singleton so that it can be accessed globally. Is this even possible? I feel the problem lies with the creation of the array; because It will not let me simply produce an array in the same way as I would in a header file.
For example:
@interface globalVariables : NSObject{
float hzArray[4]; //arrays of floating point variables.
}
@property(nonatomic) float hzArray[4]; //ERROR RETURNED HERE
+(globalVariables *) getVariable;
@end
returns the error:
Property cannot have array or function type 'float[4]'
I realise this is probably a very rudimentary question, but I appreciate any advice you can give me.
Thanks, Tom.