You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
744 B
37 lines
744 B
// |
|
// SRModifierFlagsTransformer.h |
|
// ShortcutRecorder |
|
// |
|
// Copyright 2006-2012 Contributors. All rights reserved. |
|
// |
|
// License: BSD |
|
// |
|
// Contributors: |
|
// Ilya Kulakov |
|
|
|
#import <Cocoa/Cocoa.h> |
|
|
|
|
|
/*! |
|
Transforms mask of Cocoa modifier flags to string of unicode characters. |
|
*/ |
|
@interface SRModifierFlagsTransformer : NSValueTransformer |
|
|
|
- (instancetype)initWithPlainStrings:(BOOL)aUsesPlainStrings; |
|
|
|
/*! |
|
Determines whether modifier flags are transformed to unicode characters or to plain strings. |
|
*/ |
|
@property (readonly) BOOL usesPlainStrings; |
|
|
|
/*! |
|
Returns the shared transformer. |
|
*/ |
|
+ (instancetype)sharedTransformer; |
|
|
|
/*! |
|
Returns the shared plain transformer. |
|
*/ |
|
+ (instancetype)sharedPlainTransformer; |
|
|
|
@end
|
|
|