Skip to content

Instantly share code, notes, and snippets.

@chendo
Created December 28, 2012 13:58
Show Gist options
  • Save chendo/4398077 to your computer and use it in GitHub Desktop.
Save chendo/4398077 to your computer and use it in GitHub Desktop.
Sublime Text 2 Build System to build and run the active Objective-C file. Good for playing around with small code snippets. Needs clang. Place in ~/Library/Application Support/Sublime Text 2/Packages/User
{
"cmd": ["bash", "-c", "clang -lobjc -framework Cocoa -framework Carbon -o /tmp/sublime-objc-output $file"],
"file_regex": "^(.*?):([0-9]+):([0-9]+): (.*)",
"selector": "source.objc",
"variants": [
{
"name": "Run",
"cmd": ["bash", "-c", "clang -lobjc -framework Cocoa -framework Carbon -o /tmp/sublime-objc-output $file && /tmp/sublime-objc-output"]
}
]
}
@divinedavis
Copy link

Is this able to run on Windows 8? I'm just not sure how to make it run my application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment