@import @import @implementation DocumentController : CPDocumentController { } - (id)init { self = [super init]; return [CPDocumentController sharedDocumentController]; } /* Instead of throwing error in browser environment, show an alert */ - (void)openDocument:(id)aSender { var anAlert = [CPAlert alertWithError:@"Opening a document is not available!"]; [anAlert beginSheetModalForWindow:[[CPApplication sharedApplication] mainWindow]]; } @end