You must:
- Inherit from NSObject,
- Do a "poor man's" class with your own mallocs, etc, or
- Use Objective-C++ and create a C++ class.
Of course, neither of the other two fit into Objective-C storage management, and their call protocols, etc, are different.