File: programming/cocoa/MacScare-Source.zip/MacScare-Source/GlkAppDelegate.m


//
//  GlkAppDelegate.m
//  CocoaGlk
//
//  Created by Andrew Hunter on Thu Jun 12 2003.
//  Copyright (c) 2003 Andrew Hunter. All rights reserved.
//
 
#import "GlkAppDelegate.h"
#import "GlkSession.h"
#import "MacScareGlkSession.h"
#import "NSBundle+Types.h"
// -----------------------------------------------------------------------------
//	applicationOpenUntitledFile:
//		If the app is launched directly, we bring up an "open file" panel so
//		the user can select a game to play. This calls application:openFile:
//		to do the actual opening.
//
//	REVISIONS:
//		2004-03-13	witness	Created.
// -----------------------------------------------------------------------------
// Make sure this doesn't stack "open" dialogs.
// -----------------------------------------------------------------------------
//	application:openFile:
//		Called when a user double-clicks a file associated with this app in the
//		Finder. This is the main bottleneck we use for opening files. This
//		fetches the name of our session class from the info.plist's
//		GlkSessionClass key and then creates a new instance for that.
//
//	REVISIONS:
//		2004-03-13	witness	Created.
// -----------------------------------------------------------------------------
"GlkSessionClass"// -----------------------------------------------------------------------------
//	applicationShouldTerminateAfterLastWindowClosed:
//		When the user closes our game window, or quits the game by typing in
//		the "quit" command, we want the app to quit as well.
//
//	REVISIONS:
//		2004-03-13	witness	Created.
// -----------------------------------------------------------------------------
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.