Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… previously missing header files.
  • Loading branch information...
commit f8f6d8976bf59a471b3993e6e163091be2917494 1 parent 15287c0
Jan Weiß authored
Showing with 13 additions and 7 deletions.
  1. +6 −7 PreferencesManager.h
  2. +7 −0 PreferencesManager.m
View
13 PreferencesManager.h
@@ -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 {
View
7 PreferencesManager.m
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.