I am a new settle in Obj-C. I want to wrap a OpenCV class in Obj-C. I have a C++ class now, it is like:
class cxx {
private:
IplImage* image;
public:
cxx ();
void modify ();
};
Now I am rewriting in Obj-C, I get confused in the memory type of the pointers. I put it in a class:
class obj_c:NSObjec {
IplImage* image;
}
- (id) init;
- (void) modify;
But I don t how to deal with the right property of the pointer IplImage*. If I don t set any property, I can t even access the pointer in the function.