Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
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:
 
Use
Code:
@class IPController;
instead, and use
Code:
#import "IPController.h"
in MyDocument.m
 
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.