Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Littleodie914

macrumors 68000
Original poster
Jun 9, 2004
1,813
8
Rochester, NY
Hm, now I'm getting a "parse error before IPController" with the line:

Code:
IBOutlet IPController *myController;

I'm also using

Code:
#import "IPController.h"

at the top, any clues? :confused:
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Use
Code:
@class IPController;
instead, and use
Code:
#import "IPController.h"
in MyDocument.m
 

MongoTheGeek

macrumors 68040
Ah hah, thanks, I've never used the @class thing before. Does it just tell MyDocument that the IPController is actually a class?

Its a flag for the compiler to accept the fact that there is a class of object called IPController and not to ask to many questions about it for now.

Think forward definition. But in this case its mostly to shrink header files.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.