|
Build and Execute Objective-C in Editra on Lion |
|
|
|
|
Monday, 16 January 2012 |
I wrote a very simple program to compile Objective-C in Editra's Launch plug-in. Editra is a free multi-language IDE and text editor - launch is installed by default.
Setup is simple. Add the Launch from the menu: View, Shelf, Launch. In the Launch shelf to the left is a setup icon. Click that, set the drop down to Objective-C and point to the path where you saved "run". If Launch is there, look in Plugins - downloads. Once downloaded just install and enable then it should be in the Shelf selection menu.
I created this because I love Editra for all my programming needs, like Python and web development, but didn't want to alter the Launch plugin to run Obj-C. I really wanted an light weight IDE that I could write simple little pieces of Objective-C without having to use somehting heavy like XCode or something expensive like EditRocket that also has the convenience of building and running without needing to open the terminal. That's it....
Launch setup window.
Using run to build and run with output.
I've inclued the source, and it will compile in Editra once you set Launch up, if there are no problems on your machine. I've compiled on 64bit OS X Lion so if you have problems you may
need to compile on your machine and/or possibly do some minor edits to
the source.
Get the source and compiled code here (no licensing, simply public domain):
Download
This also works in Sublime Text 2 , which has autocomplete for ObjectiveC with Sublime.CLang plugin. To set that up simply create a new build under Tools, Build System,Create New for Objective-C - type this in and save:
{ "cmd": ["/some_path/run","$file"], "selector":"source.ObjC" }
|
|