advertisement

Article:
  Giving the Simple Text Editor 'Legs'
Subject:   How I solved my "Save problem"
Date:   2001-06-05 06:31:49
From:   jonarnt
Check that the project actually is compiled properly.
I did a silly mistake the first time, by not typing semicolon after the declarations in MyDocumnent.h . Here is the correct syntax of MyDocumnet.h:


// MyDocument.h


#import <Cocoa/Cocoa.h>


@interface MyDocument : NSDocument
{
id IBOutlet textView;
NSData *fileData;
}
@end



The author should make this part of the article clearer, but it will also show up as an error in ProjectBuilder.