* You may freely copy, distribute and reuse the code in this example.
* NeXT disclaims any warranty of any kind, expressed or implied,
* as to its fitness for any particular use.
*/
#import <appkit/appkit.h>
#import <objc/NXBundle.h>
#import <objc/zone.h>
#import <sys/param.h>
#import "YapApp.h"
#import "YapDocument.h"
#import "YapOutput.h"
#define CANTOPENFILE_STRING NXLocalString("Could not open file.", NULL, "The user-specified file could not be opened")
#define OK_STRING NXLocalString("OK", NULL, "Default response in alert panel")
#define UNSAVEDDOCS_STRING NXLocalString("You have unsaved documents.", NULL, "Message given to user when he tries to quit the application without saving all of his documents.")
#define REVIEW_STRING NXLocalString("Review Unsaved", NULL, "Choice (on a button) given to user which allows him/her to review all unsaved documents if he/she quits the application without saving them all first.")
#define QUITANYWAY_STRING NXLocalString("Quit Anyway", NULL, "Choice (on a button) given to user which allows him/her to quit the application even though there are unsaved documents.")
#define QUIT_STRING NXLocalString("Quit", NULL, "The operation of exiting the application.")
#define CANCEL_STRING NXLocalString ("Cancel", NULL, "Button choice allowing user to cancel quit")
@implementation YapApp
- outputView
{
return outputView;
}
- outputWindow
{
return [outputView window];
}
#define DEFAULTWIDTH 612
#define DEFAULTHEIGHT 792
#define MINSIZE 72
#define MAXSIZE 3600
/*
* Here we have a handle to the output window, created in IB. We create
* the scroll and the yap output views and add them to this window.