andrew0 / cocoshop

Visual editor for cocos2d
Other
181 stars 30 forks source link

Suggested to change extension from .m to .mm #41

Closed winipcfg closed 13 years ago

winipcfg commented 13 years ago

Thanks for providing a great open-source tool. It will be able to call c++ libraries if the file extension changes from .m to .mm. For example, STL

psineur commented 13 years ago

We don't use Objective-C++ for Cocoshop now. If we will - there's no problem to change extension of source files. For what feature you need to change the extension?

winipcfg commented 13 years ago

Let's say an early change could allow future extensions such as

  1. box2d shapes
  2. using tinyxml to export data in Xml format
  3. maybe port to other OS with cocos2d-x

Pros is that more ppl may be willing to involve. Side effect is that it may not be pure objective-C. Thanks

psineur commented 13 years ago

I plan later add support for CCBox2D. It should be very easy, maybe @axcho or @AndreasLoew will play with it before me. There's no problem in changing extension. It's just like creating a new folder "Extensions" for extensions that we may add in the future - it's just too simple, to take care about ;)

For me there's no difference between using Objective-C or Objective-C++, so if your question was only about using C++ in cocoshop - don't worry, there's no problem with that and we will change extensions to mm 2 seconds after we will need them. So you can close this issue, if you don't need anything else than Objective-C++ support.

If you want box2d or tinyxml support in cocoshop - feel free to open independent issues for this features with appropriate naming. Thanks!