Skip to content


TextmateでちょっとしたObjective-Cのコードを実行する

TextMateでコンパイル&実行までできることに気づいたのでメモ。

test.mというファイル名でファイルを作成した後、”Select Bundle Item”ダイアログをひらいてみる(ショートカットは^⌘T)。Cのメイン関数を挿入するスニペットがあるので、
それを使うとだいたい出来上がり。

textnte-objc-cmd

textmate-objc

⌘Rでコンパイル&実行できる。

textmate-objc-run

ちなみに、上記の手順の場合、TextMateのバンドルはCのものを使っているみたいで、コンパイルは下記のようなオプションで実行されているみたいです。

gcc test.m -Wall -include stdio.h -framework Cocoa

Posted in Programming. Tagged with , , .

2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. utBREW – TextMate設定リンク集 linked to this post on April 30, 2011

    [...] TextmateでちょっとしたObjective-Cのコードを実行する [...]

  2. Alexander7 linked to this post on July 20, 2011

    buy@generic.LEVITRA” rel=”nofollow”>…

    Need cheap generic LEVITRA?…

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.