I need to rename the implementation file of the ObjC class to * .mm because I use the C ++ Framework (Box2D). After renaming the file and setting Filetype to "sourcecode.cpp.objcpp" my following private method declaration causes some errors, for example:
error: expected identifier before 'private'
Method Declaration:
@interface GameplayLayer(private)
- (void)spawnTick:(ccTime)delta;
- (void)pushSpawnTick;
@end
How can I use private method declarations in ObjC ++?
LeonS source
share