mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
24 lines
475 B
Plaintext
24 lines
475 B
Plaintext
@import <AppKit/CPDocumentController.j>
|
|
@import <AppKit/CPAlert.j>
|
|
|
|
@implementation DocumentController : CPDocumentController
|
|
{
|
|
}
|
|
|
|
- (id)init
|
|
{
|
|
self = [super init];
|
|
|
|
return self;
|
|
}
|
|
|
|
/* 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
|