Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/src/mac-app/AppDelegate.h
8815 views
1
//
2
// AppDelegate.h
3
//
4
// Created by Ivan Andrus on 26/6/10.
5
// Copyright 2010 __MyCompanyName__. All rights reserved.
6
//
7
8
#import <Cocoa/Cocoa.h>
9
#import "AppController.h"
10
11
// http://stackoverflow.com/questions/1496788/building-for-10-5-in-xcode-3-2-on-snow-leopard-error
12
13
// this is a 10.6 only protocol, but we build on 10.4 and 10.5 which
14
// makes the #if more complicated than the webpage, so we don't worrry
15
// about it.
16
//@interface AppDelegate : NSObject <NSApplicationDelegate>
17
@interface AppDelegate : NSObject
18
{
19
IBOutlet AppController* appController;
20
21
}
22
23
+ (void)initialize;
24
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification;
25
- (void)applicationWillFinishLaunching:(NSNotification *)aNotification;
26
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender;
27
28
// Opening files
29
- (BOOL)application:(NSApplication * )theApplication openFile: (NSString * )filename;
30
- (void)getUrl:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent;
31
32
33
-(IBAction)openDocumentWithDialogBox:(id)sender;
34
35
@end
36
37