In C++ we will pass the pointer to a function as
bool getData(REMOTE_ID msId,RsEvent*& pEvent);
How to declare this in Objective C?
You need to use pointers to simulate reference in C (and Objective-C):
-(BOOL)getData:(REMOTE_ID)msId withEvent:(RsEvent**)pEvent { // do stuff with msId and *pEvent }
and pass in the argument as a pointer:
RsEvent* event; BOOl res = [foo getData:msId withEvent:&event]; ...