[TxMt] Objective-C bundle - method not highlighted inside #ifdef

Fritz Anderson fritza at manoverboard.org
Fri May 18 16:53:00 UTC 2007


Consider the following code:

=================
#include <Cocoa/Cocoa.h>
#include "MyClass.h"

@implementation MyClass

- (id) init
{
	
	return self;
}

#ifndef _DEMO_

- (void) setSerialNumber: (NSString *) aSerialNumber
{
	serialNumber = [aSerialNumber copy];
}

#endif

- (NSString *) description
{
	return @"A MyClass";
}

@end
=================

The name of the method setSerialNumber: is not highlighted, and it  
does not appear in the function popup. Removing the #ifndef cures  
both problems.

Is there something I can do? Is there a later version of the Obj-C  
bundle that covers this?

	— F





More information about the textmate mailing list