2
0
MasterPassword/OnePassword/OPElementGeneratedEntity.m
Maarten Billemont 571898632f Master password loading improvements + changing + docs.
[ADDED]     The master password can now be changed.
[IMPROVED]  Flow of handling the master password when activating the app.
[IMPROVED]  iTunesArtwork & icons.
[ADDED]     Elements are now scoped to the current master password.
[ADDED]     Lots of documentation for the user:
                - Settings
                - FAQ
                - A quickstart guide
2012-01-29 12:41:48 +01:00

32 lines
771 B
Objective-C

//
// OPElementGeneratedEntity.m
// OnePassword
//
// Created by Maarten Billemont on 16/01/12.
// Copyright (c) 2012 Lyndir. All rights reserved.
//
#import "OPElementGeneratedEntity.h"
#import "OPAppDelegate.h"
@implementation OPElementGeneratedEntity
@dynamic counter;
- (id)content {
assert(self.type & OPElementTypeClassCalculated);
if (![self.name length])
return nil;
if (self.type & OPElementTypeClassCalculated)
return OPCalculateContent(self.type, self.name, [OPAppDelegate get].keyPhrase, self.counter);
@throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Unsupported type: %d", self.type] userInfo:nil];
}
@end