mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 09:09:28 +00:00
extracted MPModifiedKey, fixed autotype obfuscation to correctly use modifiers
This commit is contained in:
24
MacPass/MPModifiedKey.m
Normal file
24
MacPass/MPModifiedKey.m
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// MPModifiedKey.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 26/01/2017.
|
||||
// Copyright © 2017 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPModifiedKey.h"
|
||||
|
||||
@implementation NSValue(NSValueMPModifiedKeyExtensions)
|
||||
|
||||
- (MPModifiedKey)modifiedKeyValue {
|
||||
MPModifiedKey key;
|
||||
[self getValue:&key];
|
||||
return key;
|
||||
}
|
||||
|
||||
+ (instancetype)valueWithModifiedKey:(MPModifiedKey)key {
|
||||
return [NSValue valueWithBytes:&key objCType:@encode(MPModifiedKey)];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user