2
0

Mac OS X build fixes of shared code from iOS.

[FIXED]     Build problems with code shared from the iOS project in the
            Mac project.
This commit is contained in:
Maarten Billemont
2012-03-05 22:43:20 +01:00
parent 02ffa9611a
commit f3c24fd96f
13 changed files with 89 additions and 75 deletions

View File

@@ -6,7 +6,7 @@
// Copyright (c) 2012 Lyndir. All rights reserved.
//
#import "MPAppDelegate.h"
#import "MPAppDelegate_Key.h"
@interface MPAppDelegate ()
@@ -20,12 +20,10 @@
@synthesize managedObjectModel = __managedObjectModel;
@synthesize managedObjectContext = __managedObjectContext;
@synthesize passwordWindow;
@synthesize keyPhrase;
+ (MPAppDelegate *)get {
return (MPAppDelegate *)[NSApplication sharedApplication].delegate;
}
@synthesize key;
@synthesize keyHash;
@synthesize keyHashHex;
+ (NSManagedObjectContext *)managedObjectContext {
@@ -54,11 +52,6 @@
return [appSupportURL URLByAppendingPathComponent:@"com.lyndir.lhunath.MasterPassword"];
}
- (NSData *)keyPhraseWithLength:(NSUInteger)keyLength {
return [self.keyPhrase subdataWithRange:NSMakeRange(0, MIN(keyLength, self.keyPhrase.length))];
}
#pragma mark - Core Data stack
- (NSManagedObjectModel *)managedObjectModel {