syntax error before 'AT_NAME' token
1
Name:
Anonymous
2009-06-06 7:01
just starting to learn xcode after having used vim and the terminal for years.
the worlds simplest app, like a cocoa hello world, and i get a syntax error before 'AT_NAME' token on line 1 of this file
#import "BeepController.h"
@implementation BeepController
- (IBAction)sendBeep:(id)sender {
NSBeep();
}
@end
presumably because there is no @end in this header file but there is
#import <Cocoa/Cocoa.h>
@interface BeepController : NSObject {
}
- (IBAction)sendBeep:(id)sender:
@end
there must be some macfags here who know the score
2
Name:
Anonymous
2009-06-06 7:03
lol i just saw it, a semicolon instead of a colon. fucking obj-c
3
Name:
Anonymous
2009-06-06 7:12
4
Name:
Anonymous
2009-06-06 14:45
import "BeepController.h"
class BeepController extends NSObject {
public static IBAction sendBeep(id sender) {
NSBeep();
}
}
5
Name:
Anonymous
2009-06-06 15:26
>>4
Everyone knows Java is a ripoff of ObjC.
6
Name:
Anonymous
2009-11-18 9:20
LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOOOOOOOOOLLLLLLLLLOOOOOOOLLLLOOOOOOOOOOOLLLLLLLLLOOOOOL SHOOP DA WHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOP!!!!!!!!!!!!!11111111111oneett!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"""""""""""""""#######%%%%%%%&&&&&&&
7
Name:
Anonymous
2009-11-18 9:24
#include "BeepController.h"
class BeepController : public NSObject
{
public:
static IBAction sendBeep(id sender) { NSBeep(); }
}
8
Name:
Anonymous
2009-11-18 10:53
>>2
You could, you know, realize that all statements are terminated with a semicolon like every other C-like does
9
Name:
Anonymous
2009-11-18 11:00
>>8
No they aren't.
Counterexamples: Javascript, Ruby, sometimes Perl
10
Name:
Anonymous
2009-11-18 11:41
>>9
You-mean,Ruby-and-Perl-are-C-like?
Sorry-for-no-spaces,but-I'm-on-VNC-and-space-does-not-work-for-non-obvious-reason.
12
Name:
Anonymous
2009-11-18 12:39
13
Name:
Anonymous
2009-11-18 13:28
14
Name:
Anonymous
2009-11-18 15:08
15
Name:
Anonymous
2011-02-03 5:32
16
Name:
Anonymous
2011-02-03 6:30