Objective-c++ code helper