mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 02:22:28 +00:00
23 lines
468 B
Objective-C
23 lines
468 B
Objective-C
//
|
|
// KPKGroup+TemplateCopy.m
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 01/12/13.
|
|
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import "KPKGroup+TemplateCopy.h"
|
|
#import "KPKTimeInfo.h"
|
|
|
|
@implementation KPKGroup (TemplateCopy)
|
|
|
|
- (instancetype)copyWithName:(NSString *)name {
|
|
KPKGroup *copy = [self copy];
|
|
copy.uuid = [[NSUUID alloc] init];
|
|
copy.timeInfo.creationTime = [NSDate date];
|
|
copy.name = name;
|
|
return copy;
|
|
}
|
|
|
|
@end
|