File: programming/cocoa/UKSyntaxColoredTextDocument.zip/UKSyntaxColoredTextDocument/UKSCTDColorWellPrefsController.m


//
//  UKSCTDColorWellPrefsController.m
//  CocoaTADS
//
//  Created by Uli Kusterer on Wed Feb 11 2004.
//  Copyright (c) 2004 M. Uli Kusterer. All rights reserved.
//
 
// -----------------------------------------------------------------------------
//  Headers:
// -----------------------------------------------------------------------------
 
#import "UKSCTDColorWellPrefsController.h"
#import "NSArray+Color.h"
#import "UKSyntaxColoredTextDocument.h"
// -----------------------------------------------------------------------------
//	awakeFromNib:
//		This object has just been loaded from its NIB. Initialize the prefs
//		and display them in the color wells we are connected to.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
//	updateUIFromPrefs:
//		Assign the colors from user defaults to the corresponding color wells.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColoring:Color:Comments""SyntaxColoring:Color:Identifiers""SyntaxColoring:Color:Preprocessor""SyntaxColoring:Color:Strings""SyntaxColoring:Color:Tags""SyntaxColoring:Color:UserIdentifiers""SyntaxColoring:Color:Identifiers2""SyntaxColoring:Color:Comments2"// -----------------------------------------------------------------------------
//	takeCommentsColorFrom:
//		Action for "comments" color well that takes the new color and saves
//		it to the user defaults.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColoring:Color:Comments"];
}
 
 
// -----------------------------------------------------------------------------
//	takeIdentifiersColorFrom:
//		Action for "identifiers" color well that takes the new color and saves
//		it to the user defaults.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColoring:Color:Identifiers"];
}
 
 
// -----------------------------------------------------------------------------
//	takeIdentifiers2ColorFrom:
//		Action for "identifiers2" color well that takes the new color and saves
//		it to the user defaults.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColoring:Color:Identifiers2""SyntaxColoring:Color:UserIdentifiers"];
}
 
 
// -----------------------------------------------------------------------------
//	takePreprocessorColorFrom:
//		Action for "preprocessor" color well that takes the new color and saves
//		it to the user defaults.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColoring:Color:Preprocessor"];
}
 
 
// -----------------------------------------------------------------------------
//	takeStringsColorFrom:
//		Action for "strings" color well that takes the new color and saves
//		it to the user defaults.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColoring:Color:Strings"];
}
 
 
// -----------------------------------------------------------------------------
//	takeTagsColorFrom:
//		Action for "tags" color well that takes the new color and saves
//		it to the user defaults.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColoring:Color:Tags"];
}
 
 
// -----------------------------------------------------------------------------
//	takeComments2ColorFrom:
//		Action for "comments2" color well that takes the new color and saves
//		it to the user defaults.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColoring:Color:Comments2"];
}
 
 
// -----------------------------------------------------------------------------
//	resetColors:
//		Load the list of colors from the SyntaxColorDefaults file and re-apply
//		them to the prefs.
//
//	REVISIONS:
//		2004-05-18	witness	Documented.
// -----------------------------------------------------------------------------
"SyntaxColorDefaults" ofType:@"plist"

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.