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


//
//  GlkFileRef.m
//  CocoaGlk
//
//  Created by Andrew Hunter on Wed Jun 11 2003.
//  Copyright (c) 2003 Andrew Hunter. All rights reserved.
//
 
#import "GlkFileRef.h"
#import "GlkSession.h"
// Replace any invalid characters (fairly strictly)
'_''/':
                chr = '_''\\':
                chr = '_'' ':
                chr = '_'// Do nothing
// Must be in the user's home directory
"/Documents/CocoaGlk/"// Make sure our directory exists
"/Documents/CocoaGlk""Save directory '%@' not available"// Do the actual initialisation 
 

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.