Is there a way to pass a float "byref" to a method in objective C? Here's an overview of what I've got:
method signature:
- (void) MyMethod: (float*) min max:(float*) max;
method:
- (void) MyMethod: (float*) min max:(float*) max
{
}
trying to invoke it:
float min1 = 0; float max1 = 0;
[self MyMethod: min:&min1 max:&max1];
I get the following warning, and the code abends when trying to invoke MyMethod:
warning: 'MyClass' may not respond to '+MyMethod:min:max:'