I'm using an old 12" Powerbook for the brains of a mobile robot platform and I'm having trouble getting the NSTimer to compile in XCode 3.2.3. Creating a standard tool in C, Using:
[NSTimer scheduledTimerWithTimeInterval:2.0
target:self
selector:@selector(targetMethod:)
userInfo:nil
repeats:NO];
When I build I get a "Syntax error before [ token." or "Syntax Error before { token." depending on where the NSTimer call shows up.
Any pointers?