713ec69a20
[ADDED] Settings for remembering and storing the master password. [ADDED] KeyChain used to store master password & hash. [IMPROVED] Remember whether help is hidden. [FIXED] Making passwords stored. [ADDED] Generated password counter. Edit stored passwords. [IMPROVED] UI prettier and better documented. [ADDED] Warnings when changing a site's password.
38 lines
669 B
Objective-C
38 lines
669 B
Objective-C
//
|
|
// OPElementEntity.m
|
|
// OnePassword
|
|
//
|
|
// Created by Maarten Billemont on 02/01/12.
|
|
// Copyright (c) 2012 Lyndir. All rights reserved.
|
|
//
|
|
|
|
#import "OPElementEntity.h"
|
|
|
|
|
|
@implementation OPElementEntity
|
|
|
|
@dynamic name;
|
|
@dynamic type;
|
|
@dynamic uses;
|
|
@dynamic lastUsed;
|
|
@dynamic contentUTI;
|
|
@dynamic contentType;
|
|
|
|
- (void)use {
|
|
|
|
++self.uses;
|
|
self.lastUsed = [[NSDate date] timeIntervalSinceReferenceDate];
|
|
}
|
|
|
|
- (id)content {
|
|
|
|
@throw [NSException exceptionWithName:NSInternalInconsistencyException reason:@"Content implementation missing." userInfo:nil];
|
|
}
|
|
|
|
- (NSString *)contentDescription {
|
|
|
|
return [[self content] description];
|
|
}
|
|
|
|
@end
|