Permalink
Browse files

Replacing string defines in Obj-C code with const NSString objects in…

… previously missing header files.
  • Loading branch information...
1 parent 15287c0 commit f8f6d8976bf59a471b3993e6e163091be2917494 Jan Weiß committed Sep 27, 2011
Showing with 13 additions and 7 deletions.
  1. +6 −7 PreferencesManager.h
  2. +7 −0 PreferencesManager.m
View
@@ -8,13 +8,12 @@
#import <Foundation/Foundation.h>
-#define kEditPaneFontName @"EditPaneFontName"
-#define kEditPaneFontSize @"EditPaneFontSize"
-#define kEditPaneForegroundColor @"EditPaneForegroundColor"
-#define kEditPaneBackgroundColor @"EditPaneBackgroundColor"
-#define kEditPaneSelectionColor @"EditPaneSelectionColor"
-#define kEditPaneCaretColor @"EditPaneCaretColor"
-
+extern NSString * const kEditPaneFontName;
+extern NSString * const kEditPaneFontSize;
+extern NSString * const kEditPaneForegroundColor;
+extern NSString * const kEditPaneBackgroundColor;
+extern NSString * const kEditPaneSelectionColor;
+extern NSString * const kEditPaneCaretColor;
@interface PreferencesManager : NSObject {
@@ -8,6 +8,13 @@
#import "PreferencesManager.h"
+NSString * const kEditPaneFontName = @"EditPaneFontName";
+NSString * const kEditPaneFontSize = @"EditPaneFontSize";
+NSString * const kEditPaneForegroundColor = @"EditPaneForegroundColor";
+NSString * const kEditPaneBackgroundColor = @"EditPaneBackgroundColor";
+NSString * const kEditPaneSelectionColor = @"EditPaneSelectionColor";
+NSString * const kEditPaneCaretColor = @"EditPaneCaretColor";
+
@interface PreferencesManager (Private)
+ (NSColor *)colorForKey:(NSString *)key;

0 comments on commit f8f6d89

Please sign in to comment.