Xcode C++ and Objective-C refactoring -


is there way refactor mixed c++/objective-c code in xcode ?? writing game using cocos2d , box2d, , box2d written on c++, every class write should have .mm extension , therefore when try e.g. rename variable, got message "xcode can refactor c , objective-c code".

thanks in advance!

xcode limited refactoring, plain obj-c. it's renaming , can't rename in comments. if says can't something, can't.

the way rename using find & replace. note xcode can handle regular expressions enough.

of course, problem find & replace doesn't know programming language , can add replace or forget replace something, therefore careful. clean build neccessary after every refactoring check got renamed correctly.

you can use command line tools (e.g. sed) achieve same.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -