-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathCocoaMSX_Prefix.pch
More file actions
17 lines (15 loc) · 952 Bytes
/
CocoaMSX_Prefix.pch
File metadata and controls
17 lines (15 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// Prefix header for all source files of the 'CocoaMSX' target in the 'CocoaMSX' project
//
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
#define CMLoc(sentence, comment) NSLocalizedString(sentence, comment)
#define CMGetIntPref(key) [[NSUserDefaults standardUserDefaults] integerForKey:key]
#define CMSetIntPref(key, value) [[NSUserDefaults standardUserDefaults] setInteger:value forKey:key]
#define CMGetObjPref(key) [[NSUserDefaults standardUserDefaults] objectForKey:key]
#define CMSetObjPref(key, value) [[NSUserDefaults standardUserDefaults] setObject:value forKey:key]
#define CMGetBoolPref(key) [[NSUserDefaults standardUserDefaults] boolForKey:key]
#define CMSetBoolPref(key, value) [[NSUserDefaults standardUserDefaults] setBool:value forKey:key]
#define CMGetFloatPref(key) [[NSUserDefaults standardUserDefaults] floatForKey:key]
#define CMSetFloatPref(key, value) [[NSUserDefaults standardUserDefaults] setFloat:value forKey:key]