mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 11:42:30 +00:00
40 lines
651 B
Objective-C
40 lines
651 B
Objective-C
//
|
|
// MPEditSession.m
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 30/05/14.
|
|
// Copyright (c) 2014 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import "MPEditSession.h"
|
|
#import "KPKNode.h"
|
|
|
|
@interface MPEditSession ()
|
|
|
|
@property (strong) KPKNode *node;
|
|
@property (copy) KPKNode *rollbackNode;
|
|
|
|
@end
|
|
|
|
@implementation MPEditSession
|
|
|
|
- (instancetype)init {
|
|
self = [self initWithNode:nil];
|
|
return self;
|
|
}
|
|
|
|
- (instancetype)initWithNode:(KPKNode *)node {
|
|
self = [super init];
|
|
if(self) {
|
|
self.node = node;
|
|
self.rollbackNode = node;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (BOOL)hasChanges {
|
|
return [self.node isEqual:self.rollbackNode];
|
|
}
|
|
|
|
@end
|