// Copyright (c) 2002 __MyCompanyName__. All rights reserved.
//
#import "MyDocument.h"
#import "MyAppDelegate.h"
#import "doscript.h"
@implementationMyDocument
-(id)init
{
self=[superinit];
if(self){
// Add your subclass-specific initialization here.
// If an error occurs here, send a [self dealloc] message and return nil.
script=[@"<no script>.py"retain];
filetype=[@"Python Script"retain];
settings=NULL;
}
returnself;
}
-(NSString*)windowNibName
{
// Override returning the nib file name of the document
// If you need to use a subclass of NSWindowController or if your document supports multiple NSWindowControllers, you should remove this method and override -makeWindowControllers instead.
// Insert code here to write your document from the given data. You can also choose to override -fileWrapperRepresentationOfType: or -writeToFile:ofType: instead.
// Insert code here to read your document from the given data. You can also choose to override -loadFileWrapperRepresentation:ofType: or -readFromFile:ofType: instead.
BOOLshow_ui;
// ask the app delegate whether we should show the UI or not.