Re: A weird parse error
Re: A weird parse error
- Subject: Re: A weird parse error
- From: Robert Cerny <email@hidden>
- Date: Thu, 20 May 2004 16:15:08 +0200
Hi,
you probably copied some text from web and the editor now contains
invisible characters in the window. Try to check the source via vi or
something similar (pico ,mc, etc.)
HTH
Robert
On 20.5.2004, at 15:20, Fjolnir Asgeirsson wrote:
I get: Parse error before "memberDatasource" the line which triggers
the error is pretty well marked :)
here's appController.h
#import <Cocoa/Cocoa.h>
#import "mysql.h"
#import "toolbar.h"
#import "memberDataSource.h"
#import "matchDataSource.h"
#import "meetingDataSource.h"
@interface appController : NSObject
{
/***********IB OUTLETS***********/
// Buttons
IBOutlet NSButton *addMatchBtn;
IBOutlet NSButton *addMeetingBtn;
IBOutlet NSButton *addMemberBtn;
IBOutlet NSButton *delMatchBtn;
IBOutlet NSButton *delMeetingBtn;
IBOutlet NSButton *delMemberBtn;
IBOutlet NSButton *modMatchBtn;
IBOutlet NSButton *modMeetingBtn;
IBOutlet NSButton *modMemberBtn;
// NSViews
IBOutlet NSView *matchView;
IBOutlet NSView *meetingView;
IBOutlet NSView *memberView;
// Tables
IBOutlet NSTableView *memberTable;
IBOutlet NSTableView *matchTable;
IBOutlet NSTableView *meetingTable;
// Windows & Panels
IBOutlet NSWindow *mainWindow;
IBOutlet NSPanel *connectPanel;
IBOutlet NSPanel *connectionFailedPanel;
// Menu Items
IBOutlet NSMenuItem *registerApp;
// Progress indicators
IBOutlet NSProgressIndicator *connectStatusMeter;
/***********SQL METHODS***********/
mysql *sql;
// SQL Queries
NSString *memberQuery;
NSString *matchQuery;
NSString *meetingQuery;
/***********OTHER METHODS***********/
toolbar *tb;
NSString *currentView;
/
***********************************************************************
*
*********
* OK! WTF IS WRONG HERE!? I get a parse error on the
memberDatasource line! *
***********************************************************************
*
*********/
// Datasource instances
matchDatasource *matchDC;
meetingDatasource *meetingDC;
memberDatasource *memberDC;
}
/***********IB ACTIONS***********/
- (IBAction)addMatch:(id)sender;
- (IBAction)addMeeting:(id)sender;
- (IBAction)addMember:(id)sender;
- (IBAction)delMatch:(id)sender;
- (IBAction)delMeeting:(id)sender;
- (IBAction)delMember:(id)sender;
- (IBAction)modMatch:(id)sender;
- (IBAction)modMeeting:(id)sender;
- (IBAction)modMember:(id)sender;
- (IBAction)registerApp:(id)sender;
/***********Global Methods***********/
-(id)getCurrentView;
@end
And just in case, memberDatasource has anything to do with the error,
I'm gonna paste in both the header and Implementation (I haven't done
anything with it yet, just defined one method.
memberDatasource.h:
#import <Cocoa/Cocoa.h>
#import "appController.h"
@interface memberDatasource : NSObject
{
}
-(void)setQuery:(NSString *)query;
@end
memberDatasource.m
#import "memberDatasource.h"
@implementation memberDatasource
-(void)setQuery:(NSString *)query
{
}
@end
-Fjvlnir Asgeirsson
-Aptiva
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.