Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

syntax error before 'AT_NAME' token

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

Name: Anonymous 2009-06-06 7:03

lol i just saw it, a semicolon instead of a colon. fucking obj-c

Name: Anonymous 2009-06-06 7:12

>>1
pig disgusting

Name: Anonymous 2009-06-06 14:45

import "BeepController.h"

class BeepController extends NSObject {
  public static IBAction sendBeep(id sender) {
    NSBeep();
  }
}

Name: Anonymous 2009-06-06 15:26

>>4
Everyone knows Java is a ripoff of ObjC.

Name: Anonymous 2009-11-18 9:20

LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOOOOOOOOOLLLLLLLLLOOOOOOOLLLLOOOOOOOOOOOLLLLLLLLLOOOOOL SHOOP DA WHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOP!!!!!!!!!!!!!11111111111oneett!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"""""""""""""""#######%%%%%%%&&&&&&&

Name: Anonymous 2009-11-18 9:24

#include "BeepController.h"

class BeepController : public NSObject
{
        public:
        static IBAction sendBeep(id sender) { NSBeep(); }
}

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

Name: Anonymous 2009-11-18 11:00

>>8
No they aren't.

Counterexamples: Javascript, Ruby, sometimes Perl

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.

Name: Anonymous 2009-11-18 12:39

>>10
urdoinitrong

Name: Anonymous 2009-11-18 13:28

>>10
mmm, scheme

Name: Anonymous 2009-11-18 15:08

>>10
                                                                Here ya go

Name: Anonymous 2011-02-03 5:32

Name: Anonymous 2011-02-03 6:30

Name: Anonymous 2013-01-19 23:25

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List