So I understand that I can go into Xcode and just create a blank document and use Xcode as my Text editor for corona(lua). But I got Xcode4 and now I want to use it as my text editor and be able to use all the other features especially interface builder. Is there a way and how can I do that? [import]uid: 29032 topic_id: 8303 reply_id: 308303[/import]
You can but it is a pain. I went thru the Apple developers forums and Apple changed a lot in Xcode 4. Long story short, to use external editors is not fun in Xcode 4. So all I did was install Xcode 3 also so I have both on my computers. This way I have my file templates and projects templates back and use TextMate to edit my Corona code. [import]uid: 11809 topic_id: 8303 reply_id: 29636[/import]
Can I build a project in xcode and have a main.lua file in it? And then use interface builder to build my main menu? I have tried TextMate and I like Xcode a lot better (3.2 because I could make just a blank file) but in the xcode 4 I can’t just make a file I have to make a project. So now I really don’t know what to do. [import]uid: 29032 topic_id: 8303 reply_id: 29656[/import]
I have a Corona project template that I use which adds the main, config and build files for me. I also have file templates to add to my project when needed, like ui, director, game, etc. I don’t think you can use interface builder with Corona but I have never tried it at all. Also, I tried to use Xcode for with templates and the structure is totally different the Xcode 3 so I have had time to try. Once I’m done my app, I will look into using Xcode templates. [import]uid: 11809 topic_id: 8303 reply_id: 29660[/import]
Will it work if I build it all and then after its done save the .xcodeproj to a .lua? I have figured out how to get the main.lua but what about everything else. What would do you think I would need to do to make it so I can build it with corona? [import]uid: 29032 topic_id: 8303 reply_id: 29663[/import]
Renaming .xcodeproj to .lua will not work… lua files are scripts written in lua, and i know .xcodeproj files are not lua scripts.
I’ve never tried it either, but I’m 99.99999% sure you can’t use interface builder in conjunction with Corona. [import]uid: 7849 topic_id: 8303 reply_id: 29697[/import]
From what I read on the Apple Developers Forums, Xcode 4 in not very friendly with any language outside the scope of what Apple has included yet. Now I have gotten Xcode 4 to build lua files to Corona simulator. One thing that I don’t like is that you can’t make an external editor your default one. You can right click each file and tell Xcode 4 to open using that editor but it is a pain. So I have Xcode 4 and Xcode 3 installed on may MACs. I use Corona with Xcode 3 and objective-c with Xcode 4. I hope this helps you out. [import]uid: 11809 topic_id: 8303 reply_id: 29713[/import]