[Scopeapp-cvs]scopeapp/src main.m,1.1,1.2
Status: Alpha
Brought to you by:
narge
From: <sco...@li...> - 2002-07-21 19:38:13
|
Update of /cvsroot/scopeapp/scopeapp/src In directory usw-pr-cvs1:/tmp/cvs-serv18618 Modified Files: main.m Log Message: Used ScopeAppDelegate as application delegate to get something on the screen(quick fix). Index: main.m =================================================================== RCS file: /cvsroot/scopeapp/scopeapp/src/main.m,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** main.m 18 Jul 2002 07:32:38 -0000 1.1 --- main.m 21 Jul 2002 19:38:08 -0000 1.2 *************** *** 1,6 **** --- 1,12 ---- #import <AppKit/AppKit.h> + #import "ScopeAppDelegate.h" int main(int argc, const char *argv[]) { + // attempting to intuitively use ScopeAppDelegate as the delegate + // for the whole application FIXME + [NSApplication sharedApplication]; + [NSApp setDelegate: [ScopeAppDelegate new]]; + return NSApplicationMain(argc, argv); } |