开发者

C++ member variable in Objective-C++ under ARC

I'm trying to use a C++ member in an Objective-C++ class. Something like this:

class CPP;开发者_StackOverflow社区
@interface ObjCPP{

    CPP* cppMember;

}
@end

Without ARC, I'm able to manager cppMember with subclassing init and dealloc method. But under ARC I can't do this, because when subclassing dealloc I can't write this:

[super dealloc];

Any idea for this?

Thanks!


Under ARC, it's fine to (and you must) just leave out the [super dealloc] in a -dealloc implementation. See also this question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜