mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 00:02:28 +00:00
34 lines
510 B
Objective-C
34 lines
510 B
Objective-C
//
|
|
// MPRootAdapter.m
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 26.06.13.
|
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import "MPRootAdapter.h"
|
|
#import "Kdb.h"
|
|
|
|
@interface MPRootAdapter ()
|
|
|
|
@property (retain) NSArray *groups;
|
|
|
|
@end
|
|
|
|
@implementation MPRootAdapter
|
|
|
|
- (void)dealloc {
|
|
[_groups release];
|
|
[super dealloc];
|
|
}
|
|
|
|
- (void)setTree:(KdbTree *)tree {
|
|
if(_tree != tree) {
|
|
[_tree release];
|
|
_tree = [tree retain];
|
|
self.groups = @[_tree.root];
|
|
}
|
|
}
|
|
|
|
@end
|