thing.h
@interface Thing : NSObject
{
float stuff[30];
}
@property float stuff;
@end
thing.m
@implementation Thing
@synthesize stuff;
@end
I get error: type of property ‘stuff’ does not match type of ivar ‘stuff’
I don’t want to use an NSArray because I’d have to make the floats into NSNumbers (right?) and that’s a pain to do math with.
Update: I’ve noticed similar answers had guesses and trial answers. While I appreciate the attempts by non-Objective-C folks, I’m hoping for a definitive answer whether it’s possible or not.
OK, I have compiled up the following code at it works as expected.
FloatHolder.h
FloatHolder.m
then in your other application code you can do something like the following:
** FloatTestCode.h **
** FloatTestCode.m **