mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 15:09:25 +00:00
Added wrapping adapter for isHistory to ease binding
This commit is contained in:
21
MacPass/KPKNode+MPIsHistory.m
Normal file
21
MacPass/KPKNode+MPIsHistory.m
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// KPKNode+MPIsHistory.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 25.04.17.
|
||||
// Copyright © 2017 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "KPKNode+MPIsHistory.h"
|
||||
|
||||
@implementation KPKNode (MPIsHistory)
|
||||
|
||||
|
||||
- (BOOL)isHistory {
|
||||
if(self.asEntry) {
|
||||
return self.asEntry.isHistory;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user