Hello,
Does anyone how simple it would be to add a "Run" macro to the Objective-C package? What I'm looking for is something that works exactly like the C bundle (latest version).
Would the maintainer of the package mind adding this capability?
Best Regards,
Armon Dadgar
On Dec 4, 2008, at 8:19 PM, Armon Dadgar wrote:
Does anyone how simple it would be to add a "Run" macro to the Objective-C package? What I'm looking for is something that works exactly like the C bundle (latest version).
Would the maintainer of the package mind adding this capability?
We already added this in SVN. You can checkout the latest C bundle, or just wait a little bit until there is another cutting edge build.
—Alex
I just updated to the latest Objective-C bundle in SVN, but I don't see any run command. I think you may be talking about the C bundle, which has the functionality that I'm talking about.
Can that part of the C bundle be added to the Objective-C bundle?
Best Regards,
Armon Dadgar
On Dec 4, 2008, at 9:04 PM, Alex Ross wrote:
On Dec 4, 2008, at 8:19 PM, Armon Dadgar wrote:
Does anyone how simple it would be to add a "Run" macro to the Objective-C package? What I'm looking for is something that works exactly like the C bundle (latest version).
Would the maintainer of the package mind adding this capability?
We already added this in SVN. You can checkout the latest C bundle, or just wait a little bit until there is another cutting edge build.
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Dec 4, 2008, at 9:29 PM, Armon Dadgar wrote:
I just updated to the latest Objective-C bundle in SVN, but I don't see any run command. I think you may be talking about the C bundle, which has the functionality that I'm talking about.
Yes, you are right. The C bundle has this functionality.
Can that part of the C bundle be added to the Objective-C bundle?
No, the Objective-C grammar depends on the C grammar anyway. there's no point in duplicating the code of the Run command when there is already a dependency.
—Alex
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?
I didn't mean that we should copy and paste the macro, but rather just extend support.
Best Regards,
Armon Dadgar
On Dec 5, 2008, at 3:33 AM, Alex Ross wrote:
On Dec 4, 2008, at 9:29 PM, Armon Dadgar wrote:
I just updated to the latest Objective-C bundle in SVN, but I don't see any run command. I think you may be talking about the C bundle, which has the functionality that I'm talking about.
Yes, you are right. The C bundle has this functionality.
Can that part of the C bundle be added to the Objective-C bundle?
No, the Objective-C grammar depends on the C grammar anyway. there's no point in duplicating the code of the Run command when there is already a dependency.
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
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
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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Dec 5, 2008, at 5:19 PM, Armon Dadgar wrote:
I get the following error when I do that: "/tmp/temp_textmate.Y4cDIW:8: private method `gsub' called for nil:NilClass (NoMethodError)"
I think that this indicates that you do not have an up-to-date C bundle. Did you check it out from svn?
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?
I'm not sure about -lobjc (I'm not actually an obj-c user). The -x objective-c flag is also added, but it's not overridden by TM_OBJC_FLAGS so you don't have to add it yourself when defining a custom set of flags.
—Alex
I guess I didn't read the release notes carefully... My C bundle was still linked to the old repository, and I wasn't updating against the latest copy.
It appears to be working now, thanks!
Best Regards,
Armon Dadgar
On Dec 5, 2008, at 7:53 PM, Alex Ross wrote:
On Dec 5, 2008, at 5:19 PM, Armon Dadgar wrote:
I get the following error when I do that: "/tmp/temp_textmate.Y4cDIW:8: private method `gsub' called for nil:NilClass (NoMethodError)"
I think that this indicates that you do not have an up-to-date C bundle. Did you check it out from svn?
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?
I'm not sure about -lobjc (I'm not actually an obj-c user). The -x objective-c flag is also added, but it's not overridden by TM_OBJC_FLAGS so you don't have to add it yourself when defining a custom set of flags.
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate