How to take these parameters the same way this function does?

How to take these parameters the same way this function does?

For example:

- (BOOL)compare:(NSDecimal)leftOperand greaterThan:(NSDecimal)rightOperand {     NSComparisonResult result = NSDecimalCompare(&leftOperand, &rightOperand);     // rest not important } 

like you can see, the method just receives these two types of NSDecimal, leftOperand and rightOperand. Then it passes them on to a C API function which likes to have them by reference. Sorry if that's the wrong term, didn't study that stuff. Currect me if I'm wrong :-)

I want to modify this method in such a way, that I can also accept parameters the way that function does. I think that's clever, because the method won't copy the parameters (I believe it does). What would I have to add in there in order to get this reference thing right? And after that, my parameters are just references, right? How would I pass these then along to the NSDecimalCompare function?

I slighlty remember there was some dereferencing operator around for that?

Tab-like-thing with tab-switch animation in a section of UITableView


How do I detect when the iPhone goes into landscape mode via JavaScript? Is there an event for this?
Java RSA decryption did not work for the data decrypted with its public key in IPhone
- (BOOL)compare:(const NSDecimal*)leftOperand greaterThan:(const NSDecimal*)rightOperand {     NSComparisonResult result = NSDecimalCompare(leftOperand, rightOperand);     // rest not important } 

Having trouble adding objects to NSMutableArray in Objective C

78 out of 100 based on 53 user ratings 1028 reviews