I have some properties set up on an object, mostly GLfloat
and I was wondering if there was a way to use [self setValue:(id)value forKey:(id)key];
that would take a c style variable?
It doesn't have to be setValue:forKey
if there is an alternative if there is one available.
My reasoning is I have a lot of properties on an object that are floats
and I can pass an NSDictionary
with values (NSNumber
here is no issue) to set each relevant value.
Ideally I could do this without enumerators or custom setters - is this doable?