[TxMt] Re: Objective-C Macro to Run

Armon Dadgar armon.dadgar at gmail.com
Sat Dec 6 01:19:45 UTC 2008


I get the following error when I do that:
"/tmp/temp_textmate.Y4cDIW:8: private method `gsub' called for  
nil:NilClass (NoMethodError)"

All I did was open a C file, switch the bundle to Objective-C, and do  
run.
Also, should the flags "-lobjc" or "-x objective-c" be added?

Best Regards,

Armon Dadgar



On Dec 5, 2008, at 4:19 PM, Alex Ross wrote:

> On Dec 5, 2008, at 10:13 AM, Armon Dadgar wrote:
>
>> As of now the C bundle can only recognize C/C++,
>> would it be possible to add detection of the ".m" suffix,
>> and allow it to include the appropriate flags for GCC to compile
>> Objective-C correctly?
>
> If you have the latest C and Objective-C bundles, you just need to set
> the current language to “Objective-C” and press ⌘R.  The command
> is in the C bundle, but it also targets the Objective-C scope.  It
> will add the appropriate flags.  The default flags are: “-Wall -
> include stdio.h -framework Cocoa”.  If you want to specify your own
> flags, you can set TM_OBJC_FLACS in the Shell Variables preferences
> (this *replaces* the default flags, so be careful).
>
> —Alex
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate




More information about the textmate mailing list