Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove In-App purchaces code

  • Loading branch information...
commit cf9c46bcfab54bed13afa472e92f9b690d7296fe 1 parent 9ca8a79
@garnett garnett authored
View
28 CoreDataUtil.xcodeproj/project.pbxproj
@@ -13,20 +13,15 @@
5B2AEF1B1576B67600DFD0D6 /* GetInfoSheetController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B2AEF191576B67600DFD0D6 /* GetInfoSheetController.m */; };
5B2AEF1C1576B67600DFD0D6 /* GetInfoSheetController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5B2AEF1A1576B67600DFD0D6 /* GetInfoSheetController.xib */; };
5B2BA5C4159C9FEB00AFEC9D /* CoreDataHistoryObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B2BA5C3159C9FEB00AFEC9D /* CoreDataHistoryObject.m */; };
- 5B2D94C415A20C7800E07BC6 /* InAppPurchaseTableCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B2D94C315A20C7800E07BC6 /* InAppPurchaseTableCellView.m */; };
5B2E2AA61565A8AC00F6F6EA /* OpenFileSheetController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B2E2AA41565A8AC00F6F6EA /* OpenFileSheetController.m */; };
5B2E2AA71565A8AC00F6F6EA /* OpenFileSheetController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5B2E2AA51565A8AC00F6F6EA /* OpenFileSheetController.xib */; };
5B330A701590CB1E00D79D4D /* EntityDataTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B330A6F1590CB1E00D79D4D /* EntityDataTableViewCell.m */; };
- 5B666CB9159E365700683E10 /* MFLInAppPurchaseHelperSubclass.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B666CB8159E365700683E10 /* MFLInAppPurchaseHelperSubclass.m */; };
- 5B666D41159E50F100683E10 /* InAppPurchaseWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B666D3F159E50F100683E10 /* InAppPurchaseWindowController.m */; };
- 5B666D42159E50F100683E10 /* InAppPurchaseWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5B666D40159E50F100683E10 /* InAppPurchaseWindowController.xib */; };
5BE26B63157FE8EE00DC186E /* EntityTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5BE26B62157FE8EE00DC186E /* EntityTableView.m */; };
5BE26B67157FF22700DC186E /* EntityDataTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5BE26B66157FF22700DC186E /* EntityDataTableView.m */; };
830D04ED1598CC4D003874CA /* MFLMainWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 830D04EB1598CC4D003874CA /* MFLMainWindowController.m */; };
830D04EE1598CC4D003874CA /* MFLMainWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 830D04EC1598CC4D003874CA /* MFLMainWindowController.xib */; };
830D8452158FE0780022F403 /* Entity_Small.png in Resources */ = {isa = PBXBuildFile; fileRef = 830D8450158FE0780022F403 /* Entity_Small.png */; };
830D8453158FE0780022F403 /* Entity_Small_Set.png in Resources */ = {isa = PBXBuildFile; fileRef = 830D8451158FE0780022F403 /* Entity_Small_Set.png */; };
- 83282A7B159CDFA800C25041 /* MFLInAppPurchaseHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 83282A7A159CDFA800C25041 /* MFLInAppPurchaseHelper.m */; };
83282A7D159CE13700C25041 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83282A7C159CE13600C25041 /* StoreKit.framework */; };
832C9696159BD69E00AC8FA8 /* CoreData.ext in Resources */ = {isa = PBXBuildFile; fileRef = 832C9695159BD69E00AC8FA8 /* CoreData.ext */; };
832C969B159BDBB000AC8FA8 /* MFLCoreDataEditorProjectLoader.m in Sources */ = {isa = PBXBuildFile; fileRef = 832C969A159BDBB000AC8FA8 /* MFLCoreDataEditorProjectLoader.m */; };
@@ -95,18 +90,11 @@
5B2AEF1A1576B67600DFD0D6 /* GetInfoSheetController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GetInfoSheetController.xib; sourceTree = "<group>"; };
5B2BA5C2159C9FEB00AFEC9D /* CoreDataHistoryObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CoreDataHistoryObject.h; path = CoreDataUtil/CoreDataHistoryObject.h; sourceTree = SOURCE_ROOT; };
5B2BA5C3159C9FEB00AFEC9D /* CoreDataHistoryObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CoreDataHistoryObject.m; path = CoreDataUtil/CoreDataHistoryObject.m; sourceTree = SOURCE_ROOT; };
- 5B2D94C215A20C7800E07BC6 /* InAppPurchaseTableCellView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InAppPurchaseTableCellView.h; sourceTree = "<group>"; };
- 5B2D94C315A20C7800E07BC6 /* InAppPurchaseTableCellView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InAppPurchaseTableCellView.m; sourceTree = "<group>"; };
5B2E2AA31565A8AC00F6F6EA /* OpenFileSheetController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OpenFileSheetController.h; sourceTree = "<group>"; };
5B2E2AA41565A8AC00F6F6EA /* OpenFileSheetController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OpenFileSheetController.m; sourceTree = "<group>"; };
5B2E2AA51565A8AC00F6F6EA /* OpenFileSheetController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = OpenFileSheetController.xib; sourceTree = "<group>"; };
5B330A6E1590CB1E00D79D4D /* EntityDataTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EntityDataTableViewCell.h; sourceTree = "<group>"; };
5B330A6F1590CB1E00D79D4D /* EntityDataTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EntityDataTableViewCell.m; sourceTree = "<group>"; };
- 5B666CB7159E365700683E10 /* MFLInAppPurchaseHelperSubclass.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MFLInAppPurchaseHelperSubclass.h; sourceTree = "<group>"; };
- 5B666CB8159E365700683E10 /* MFLInAppPurchaseHelperSubclass.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MFLInAppPurchaseHelperSubclass.m; sourceTree = "<group>"; };
- 5B666D3E159E50F100683E10 /* InAppPurchaseWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InAppPurchaseWindowController.h; sourceTree = "<group>"; };
- 5B666D3F159E50F100683E10 /* InAppPurchaseWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InAppPurchaseWindowController.m; sourceTree = "<group>"; };
- 5B666D40159E50F100683E10 /* InAppPurchaseWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = InAppPurchaseWindowController.xib; sourceTree = "<group>"; };
5BE26B61157FE8EE00DC186E /* EntityTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EntityTableView.h; sourceTree = "<group>"; };
5BE26B62157FE8EE00DC186E /* EntityTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EntityTableView.m; sourceTree = "<group>"; };
5BE26B65157FF22700DC186E /* EntityDataTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EntityDataTableView.h; sourceTree = "<group>"; };
@@ -117,8 +105,6 @@
830D04EC1598CC4D003874CA /* MFLMainWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MFLMainWindowController.xib; sourceTree = "<group>"; };
830D8450158FE0780022F403 /* Entity_Small.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Entity_Small.png; sourceTree = "<group>"; };
830D8451158FE0780022F403 /* Entity_Small_Set.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Entity_Small_Set.png; sourceTree = "<group>"; };
- 83282A79159CDFA800C25041 /* MFLInAppPurchaseHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MFLInAppPurchaseHelper.h; sourceTree = "<group>"; };
- 83282A7A159CDFA800C25041 /* MFLInAppPurchaseHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MFLInAppPurchaseHelper.m; sourceTree = "<group>"; };
83282A7C159CE13600C25041 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
832C9695159BD69E00AC8FA8 /* CoreData.ext */ = {isa = PBXFileReference; lastKnownFileType = file.bplist; path = CoreData.ext; sourceTree = "<group>"; };
832C9699159BDBB000AC8FA8 /* MFLCoreDataEditorProjectLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MFLCoreDataEditorProjectLoader.h; sourceTree = "<group>"; };
@@ -219,10 +205,6 @@
children = (
832C9699159BDBB000AC8FA8 /* MFLCoreDataEditorProjectLoader.h */,
832C969A159BDBB000AC8FA8 /* MFLCoreDataEditorProjectLoader.m */,
- 83282A79159CDFA800C25041 /* MFLInAppPurchaseHelper.h */,
- 83282A7A159CDFA800C25041 /* MFLInAppPurchaseHelper.m */,
- 5B666CB7159E365700683E10 /* MFLInAppPurchaseHelperSubclass.h */,
- 5B666CB8159E365700683E10 /* MFLInAppPurchaseHelperSubclass.m */,
);
path = Utils;
sourceTree = "<group>";
@@ -240,8 +222,6 @@
833DF7FD1593836600793430 /* MFLEntityTableCellView.m */,
83922D361598F264004C273C /* MFLCellBuilder.h */,
83922D371598F264004C273C /* MFLCellBuilder.m */,
- 5B2D94C215A20C7800E07BC6 /* InAppPurchaseTableCellView.h */,
- 5B2D94C315A20C7800E07BC6 /* InAppPurchaseTableCellView.m */,
);
name = TableViewCells;
sourceTree = "<group>";
@@ -337,9 +317,6 @@
5B2AEF181576B67600DFD0D6 /* GetInfoSheetController.h */,
5B2AEF191576B67600DFD0D6 /* GetInfoSheetController.m */,
5B2AEF1A1576B67600DFD0D6 /* GetInfoSheetController.xib */,
- 5B666D3E159E50F100683E10 /* InAppPurchaseWindowController.h */,
- 5B666D3F159E50F100683E10 /* InAppPurchaseWindowController.m */,
- 5B666D40159E50F100683E10 /* InAppPurchaseWindowController.xib */,
C1CEFE5C1463779D00466EB3 /* Supporting Files */,
1D52574316EB66F100A91244 /* FetchRequestInfoController.h */,
1D52574416EB66F100A91244 /* FetchRequestInfoController.m */,
@@ -525,7 +502,6 @@
83A219751594DEB600ADDF5D /* String_Small.png in Resources */,
830D04EE1598CC4D003874CA /* MFLMainWindowController.xib in Resources */,
832C9696159BD69E00AC8FA8 /* CoreData.ext in Resources */,
- 5B666D42159E50F100683E10 /* InAppPurchaseWindowController.xib in Resources */,
838055C915A3A67200D050E7 /* ApplicationIcon-CDP.icns in Resources */,
838055CA15A3A67200D050E7 /* ApplicationIcon-MOM.icns in Resources */,
1D52573D16EAA47400A91244 /* Fetch_Small.png in Resources */,
@@ -589,10 +565,6 @@
83922D381598F264004C273C /* MFLCellBuilder.m in Sources */,
832C969B159BDBB000AC8FA8 /* MFLCoreDataEditorProjectLoader.m in Sources */,
5B2BA5C4159C9FEB00AFEC9D /* CoreDataHistoryObject.m in Sources */,
- 83282A7B159CDFA800C25041 /* MFLInAppPurchaseHelper.m in Sources */,
- 5B666CB9159E365700683E10 /* MFLInAppPurchaseHelperSubclass.m in Sources */,
- 5B666D41159E50F100683E10 /* InAppPurchaseWindowController.m in Sources */,
- 5B2D94C415A20C7800E07BC6 /* InAppPurchaseTableCellView.m in Sources */,
1D52574616EB66F200A91244 /* FetchRequestInfoController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
View
21 CoreDataUtil/EntityDataTableView.m
@@ -9,7 +9,6 @@
#import "EntityDataTableView.h"
#import "MFLButtonTableViewCell.h"
#import "MFLMainWindowController.h"
-#import "InAppPurchaseWindowController.h"
@implementation EntityDataTableView
@@ -126,34 +125,14 @@ - (void) copySelectedRow: (BOOL) escapeSpecialChars {
}
}
-- (BOOL) isFUllVersion {
-
- // if Copy is not already purchased, prompt user to buy it
- if ([[MFLInAppPurchaseHelperSubclass sharedHelper] isFullVersion] == NO) {
- InAppPurchaseWindowController* inAppPurchaseSheetController = [[InAppPurchaseWindowController alloc] initWithWindowNibName:@"InAppPurchaseWindowController"];
- [inAppPurchaseSheetController show:self.window];
- inAppPurchaseSheetController = nil;
- }
- return [[MFLInAppPurchaseHelperSubclass sharedHelper] isFullVersion];
-}
-
- (IBAction) copy:(id)sender
{
- // if the in-app purchase is not already purchased, prompt user to buy it
- if ([self isFUllVersion] == NO) {
- return;
- }
-
NSLog(@"Copy Selected entityDataTable items. [%@]", sender);
[self copySelectedRow:NO];
}
- (IBAction) copyFormatted:(id)sender
{
- if ([self isFUllVersion] == NO) {
- return;
- }
-
NSLog(@"copyFormated Selected entityDataTable items. [%@]", sender);
[self copySelectedRow:YES];
}
View
16 CoreDataUtil/InAppPurchaseTableCellView.h
@@ -1,16 +0,0 @@
-//
-// InAppPurchaseTableCellView.h
-// CoreDataUtil
-//
-// Created by Laurie Caires on 7/2/12.
-// Copyright (c) 2012 mFluent LLC. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-@interface InAppPurchaseTableCellView : NSTableCellView
-
-@property (strong) IBOutlet NSTextField* infoField;
-@property (strong) IBOutlet NSTextField *priceField;
-
-@end
View
29 CoreDataUtil/InAppPurchaseTableCellView.m
@@ -1,29 +0,0 @@
-//
-// InAppPurchaseTableCellView.m
-// CoreDataUtil
-//
-// Created by Laurie Caires on 7/2/12.
-// Copyright (c) 2012 mFluent LLC. All rights reserved.
-//
-
-#import "InAppPurchaseTableCellView.h"
-
-@implementation InAppPurchaseTableCellView
-
-- (id)initWithFrame:(NSRect)frame
-{
- self = [super initWithFrame:frame];
- if (self)
- {
- // Initialization code here.
- }
-
- return self;
-}
-
-- (void)drawRect:(NSRect)dirtyRect
-{
- // Drawing code here.
-}
-
-@end
View
25 CoreDataUtil/InAppPurchaseWindowController.h
@@ -1,25 +0,0 @@
-//
-// InAppPurchaseWindowController.h
-// CoreDataUtil
-//
-// Created by Laurie Caires on 6/29/12.
-// Copyright (c) 2012 mFluent LLC. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "MFLAppDelegate.h"
-#import "MFLInAppPurchaseHelperSubclass.h"
-#import "InAppPurchaseTableCellView.h"
-#import "MFLCellBuilder.h"
-
-@class MFLAppDelegate;
-
-@interface InAppPurchaseWindowController : NSWindowController <NSTableViewDataSource, NSTableViewDelegate>
-
-@property (weak) IBOutlet NSTableView *inAppPurchaseTableView;
-
-- (IBAction)inAppPurchaseCancelButtonAction:(id)sender;
-
-- (void)show:(NSWindow *)sender;
-
-@end
View
159 CoreDataUtil/InAppPurchaseWindowController.m
@@ -1,159 +0,0 @@
-//
-// InAppPurchaseWindowController.m
-// CoreDataUtil
-//
-// Created by Laurie Caires on 6/29/12.
-// Copyright (c) 2012 mFluent LLC. All rights reserved.
-//
-
-#import "InAppPurchaseWindowController.h"
-#import "MFLConstants.h"
-
-@interface InAppPurchaseWindowController ()
-
-
-@end
-
-@implementation InAppPurchaseWindowController
-
-
-- (id)initWithWindowNibName:(NSString *)windowNibName
-{
- self = [super initWithWindowNibName:windowNibName];
- if (self)
- {
-
- }
-
- return self;
-}
-
-- (void)dealloc {
-
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-}
-
-- (void)windowWillLoad
-{
- self.inAppPurchaseTableView.hidden = TRUE;
-
- if ([MFLInAppPurchaseHelperSubclass sharedHelper].products == nil)
- {
- [[MFLInAppPurchaseHelperSubclass sharedHelper] requestProducts];
- }
-}
-
-
-- (void)windowDidLoad
-{
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(productsLoaded:) name:MFL_kProductsLoadedNotification object:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(closeWindow:) name:MFL_kProductPurchasedNotification object:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(purchaseFailed:) name:MFL_kProductPurchaseFailedNotification object:nil];
-
- [super windowDidLoad];
-}
-
-- (void) closeWindow:(NSNotification *)notification {
- [NSApp stopModal];
- [self.window close];
-
-}
-
-- (void) showAlertAndCloseWindow: (SKPaymentTransaction*) transaction {
- NSLog(@"Transaction failed: [%@]\n%@", transaction, transaction.error.localizedDescription);
-// NSAlert *alert = [[NSAlert alloc] init];
-// [alert addButtonWithTitle:@"OK"];
-// [alert setMessageText:@"Item Purchase Failed"];
-// [alert setInformativeText:transaction.error.localizedDescription];
-// [alert setAlertStyle:NSWarningAlertStyle];
-// [alert beginSheetModalForWindow:self.window modalDelegate:nil didEndSelector:NULL contextInfo:nil];
-
- [self closeWindow:nil];
-
-}
-
-- (void) purchaseFailed:(NSNotification*) notification {
-
- SKPaymentTransaction * transaction = (SKPaymentTransaction *) notification.object;
- if (transaction.error.code != SKErrorPaymentCancelled) {
- [self performSelectorOnMainThread:@selector(showAlertAndCloseWindow:) withObject:transaction waitUntilDone:NO];
- } else {
- NSLog(@"SKErrorPaymentCancelled");
- [self closeWindow:notification];
- }
-
-
-}
-
-
-- (void)productsLoaded:(NSNotification *)notification
-{
- [NSObject cancelPreviousPerformRequestsWithTarget:self];
- self.inAppPurchaseTableView.hidden = FALSE;
- [self.inAppPurchaseTableView reloadData];
-
-}
-
-#pragma mark -
-#pragma mark NSTableViewDataSource
-
-- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
-{
- return [[MFLInAppPurchaseHelperSubclass sharedHelper].products count];
-}
-
-- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
-{
- SKProduct *product = ([MFLInAppPurchaseHelperSubclass sharedHelper].products)[row];
-
- NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
- [numberFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
- [numberFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
- [numberFormatter setLocale:product.priceLocale];
- NSString *formattedString = [numberFormatter stringFromNumber:product.price];
-
- InAppPurchaseTableCellView *buttonCell = [MFLCellBuilder inAppPurchaseCellWithString:tableView :product.localizedTitle :formattedString :row :self];
-
- NSIndexSet *indexSet = [NSIndexSet indexSetWithIndex:0];
- [tableView selectRowIndexes:indexSet byExtendingSelection:NO];
- return buttonCell;
-}
-
-- (void)show:(NSWindow *)sender
-{
- [NSApp beginSheet:self.window modalForWindow:sender modalDelegate:nil didEndSelector:nil contextInfo:nil];
- [NSApp runModalForWindow:self.window];
- // sheet is up here...
-
- [NSApp endSheet:self.window];
- [self.window orderOut:self];
-}
-
-
-#pragma mark -
-#pragma mark IBActions
-
-- (IBAction)inAppPurchaseCancelButtonAction:(id)sender
-{
- [NSApp stopModal];
- [self.window close];
-}
-
-- (IBAction)restoreTransactionsAction:(id)sender {
- [[MFLInAppPurchaseHelperSubclass sharedHelper] restoreProducts];
-}
-
-- (IBAction)buyAction:(id)sender {
-
- NSInteger selectedRow = [[self inAppPurchaseTableView] selectedRow];
-
- if (selectedRow < 0) {
- return;
- }
-
- SKProduct *product = ([MFLInAppPurchaseHelperSubclass sharedHelper].products)[selectedRow];
- [[MFLInAppPurchaseHelperSubclass sharedHelper] buyProduct:product];
-}
-
-
-@end
View
1,089 CoreDataUtil/InAppPurchaseWindowController.xib
@@ -1,1089 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
- <data>
- <int key="IBDocument.SystemTarget">1070</int>
- <string key="IBDocument.SystemVersion">11E53</string>
- <string key="IBDocument.InterfaceBuilderVersion">2182</string>
- <string key="IBDocument.AppKitVersion">1138.47</string>
- <string key="IBDocument.HIToolboxVersion">569.00</string>
- <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="NS.object.0">2182</string>
- </object>
- <array key="IBDocument.IntegratedClassDependencies">
- <string>NSScroller</string>
- <string>NSTableHeaderView</string>
- <string>NSButton</string>
- <string>NSScrollView</string>
- <string>NSTextFieldCell</string>
- <string>NSButtonCell</string>
- <string>NSTableView</string>
- <string>NSTableCellView</string>
- <string>IBNSLayoutConstraint</string>
- <string>NSCustomObject</string>
- <string>NSView</string>
- <string>NSWindowTemplate</string>
- <string>NSTableColumn</string>
- <string>NSTextField</string>
- </array>
- <array key="IBDocument.PluginDependencies">
- <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- </array>
- <object class="NSMutableDictionary" key="IBDocument.Metadata">
- <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
- <integer value="1" key="NS.object.0"/>
- </object>
- <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
- <object class="NSCustomObject" id="1001">
- <string key="NSClassName">InAppPurchaseWindowController</string>
- </object>
- <object class="NSCustomObject" id="1003">
- <string key="NSClassName">FirstResponder</string>
- </object>
- <object class="NSCustomObject" id="1004">
- <string key="NSClassName">NSApplication</string>
- </object>
- <object class="NSWindowTemplate" id="1005">
- <int key="NSWindowStyleMask">15</int>
- <int key="NSWindowBacking">2</int>
- <string key="NSWindowRect">{{196, 240}, {480, 270}}</string>
- <int key="NSWTFlags">544735232</int>
- <string key="NSWindowTitle">In-App Purchases</string>
- <string key="NSWindowClass">NSWindow</string>
- <nil key="NSViewClass"/>
- <nil key="NSUserInterfaceItemIdentifier"/>
- <object class="NSView" key="NSWindowView" id="1006">
- <reference key="NSNextResponder"/>
- <int key="NSvFlags">256</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSScrollView" id="212345334">
- <reference key="NSNextResponder" ref="1006"/>
- <int key="NSvFlags">268</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSClipView" id="508801291">
- <reference key="NSNextResponder" ref="212345334"/>
- <int key="NSvFlags">2304</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSTableView" id="639420569">
- <reference key="NSNextResponder" ref="508801291"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrameSize">{438, 190}</string>
- <reference key="NSSuperview" ref="508801291"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="96138488"/>
- <string key="NSReuseIdentifierKey">_NS:13</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSTableHeaderView" key="NSHeaderView" id="890037199">
- <reference key="NSNextResponder" ref="96138488"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrameSize">{438, 17}</string>
- <reference key="NSSuperview" ref="96138488"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="7995541"/>
- <string key="NSReuseIdentifierKey">_NS:16</string>
- <reference key="NSTableView" ref="639420569"/>
- </object>
- <object class="_NSCornerView" key="NSCornerView" id="7995541">
- <nil key="NSNextResponder"/>
- <int key="NSvFlags">-2147483392</int>
- <string key="NSFrame">{{224, 0}, {16, 17}}</string>
- <reference key="NSNextKeyView" ref="508801291"/>
- <string key="NSReuseIdentifierKey">_NS:19</string>
- </object>
- <array class="NSMutableArray" key="NSTableColumns">
- <object class="NSTableColumn" id="314842709">
- <double key="NSWidth">428.72265625</double>
- <double key="NSMinWidth">40</double>
- <double key="NSMaxWidth">1000</double>
- <object class="NSTableHeaderCell" key="NSHeaderCell">
- <int key="NSCellFlags">75628096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents"/>
- <object class="NSFont" key="NSSupport">
- <string key="NSName">LucidaGrande</string>
- <double key="NSSize">11</double>
- <int key="NSfFlags">3100</int>
- </object>
- <object class="NSColor" key="NSBackgroundColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC4zMzMzMzI5ODU2AA</bytes>
- </object>
- <object class="NSColor" key="NSTextColor">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">headerTextColor</string>
- <object class="NSColor" key="NSColor" id="59419431">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MAA</bytes>
- </object>
- </object>
- </object>
- <object class="NSTextFieldCell" key="NSDataCell" id="443480646">
- <int key="NSCellFlags">337772096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">Text Cell</string>
- <object class="NSFont" key="NSSupport" id="594554432">
- <string key="NSName">LucidaGrande</string>
- <double key="NSSize">13</double>
- <int key="NSfFlags">1044</int>
- </object>
- <reference key="NSControlView" ref="639420569"/>
- <object class="NSColor" key="NSBackgroundColor" id="587016684">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">controlBackgroundColor</string>
- <object class="NSColor" key="NSColor" id="953190853">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
- </object>
- </object>
- <object class="NSColor" key="NSTextColor" id="1062606848">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">controlTextColor</string>
- <reference key="NSColor" ref="59419431"/>
- </object>
- </object>
- <int key="NSResizingMask">3</int>
- <bool key="NSIsResizeable">YES</bool>
- <bool key="NSIsEditable">YES</bool>
- <reference key="NSTableView" ref="639420569"/>
- </object>
- </array>
- <double key="NSIntercellSpacingWidth">3</double>
- <double key="NSIntercellSpacingHeight">2</double>
- <object class="NSColor" key="NSBackgroundColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MQA</bytes>
- </object>
- <object class="NSColor" key="NSGridColor">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">gridColor</string>
- <object class="NSColor" key="NSColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC41AA</bytes>
- </object>
- </object>
- <double key="NSRowHeight">43</double>
- <int key="NSTvFlags">-568328192</int>
- <reference key="NSDelegate"/>
- <reference key="NSDataSource"/>
- <int key="NSColumnAutoresizingStyle">4</int>
- <int key="NSDraggingSourceMaskForLocal">15</int>
- <int key="NSDraggingSourceMaskForNonLocal">0</int>
- <bool key="NSAllowsTypeSelect">YES</bool>
- <int key="NSTableViewDraggingDestinationStyle">0</int>
- <int key="NSTableViewGroupRowStyle">1</int>
- </object>
- </array>
- <string key="NSFrame">{{1, 17}, {438, 190}}</string>
- <reference key="NSSuperview" ref="212345334"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="639420569"/>
- <string key="NSReuseIdentifierKey">_NS:11</string>
- <reference key="NSDocView" ref="639420569"/>
- <reference key="NSBGColor" ref="587016684"/>
- <int key="NScvFlags">4</int>
- </object>
- <object class="NSScroller" id="194733090">
- <reference key="NSNextResponder" ref="212345334"/>
- <int key="NSvFlags">-2147483392</int>
- <string key="NSFrame">{{224, 17}, {15, 102}}</string>
- <reference key="NSSuperview" ref="212345334"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="786855941"/>
- <string key="NSReuseIdentifierKey">_NS:58</string>
- <reference key="NSTarget" ref="212345334"/>
- <string key="NSAction">_doScroller:</string>
- <double key="NSCurValue">37</double>
- <double key="NSPercent">0.1947367936372757</double>
- </object>
- <object class="NSScroller" id="786855941">
- <reference key="NSNextResponder" ref="212345334"/>
- <int key="NSvFlags">-2147483392</int>
- <string key="NSFrame">{{1, 119}, {223, 15}}</string>
- <reference key="NSSuperview" ref="212345334"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="7538885"/>
- <string key="NSReuseIdentifierKey">_NS:60</string>
- <int key="NSsFlags">1</int>
- <reference key="NSTarget" ref="212345334"/>
- <string key="NSAction">_doScroller:</string>
- <double key="NSPercent">0.57142859697341919</double>
- </object>
- <object class="NSClipView" id="96138488">
- <reference key="NSNextResponder" ref="212345334"/>
- <int key="NSvFlags">2304</int>
- <array class="NSMutableArray" key="NSSubviews">
- <reference ref="890037199"/>
- </array>
- <string key="NSFrame">{{1, 0}, {438, 17}}</string>
- <reference key="NSSuperview" ref="212345334"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="890037199"/>
- <string key="NSReuseIdentifierKey">_NS:15</string>
- <reference key="NSDocView" ref="890037199"/>
- <reference key="NSBGColor" ref="587016684"/>
- <int key="NScvFlags">4</int>
- </object>
- </array>
- <string key="NSFrame">{{20, 42}, {440, 208}}</string>
- <reference key="NSSuperview" ref="1006"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="508801291"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <int key="NSsFlags">133682</int>
- <reference key="NSVScroller" ref="194733090"/>
- <reference key="NSHScroller" ref="786855941"/>
- <reference key="NSContentView" ref="508801291"/>
- <reference key="NSHeaderClipView" ref="96138488"/>
- <bytes key="NSScrollAmts">QSAAAEEgAABCNAAAQjQAAA</bytes>
- </object>
- <object class="NSButton" id="7538885">
- <reference key="NSNextResponder" ref="1006"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{14, 3}, {82, 32}}</string>
- <reference key="NSSuperview" ref="1006"/>
- <reference key="NSWindow"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSButtonCell" key="NSCell" id="482692348">
- <int key="NSCellFlags">67239424</int>
- <int key="NSCellFlags2">134217728</int>
- <string key="NSContents">Cancel</string>
- <reference key="NSSupport" ref="594554432"/>
- <string key="NSCellIdentifier">_NS:9</string>
- <reference key="NSControlView" ref="7538885"/>
- <int key="NSButtonFlags">-2038284033</int>
- <int key="NSButtonFlags2">129</int>
- <string key="NSAlternateContents"/>
- <string type="base64-UTF8" key="NSKeyEquivalent">Gw</string>
- <int key="NSPeriodicDelay">200</int>
- <int key="NSPeriodicInterval">25</int>
- </object>
- </object>
- <object class="NSButton" id="54107591">
- <reference key="NSNextResponder" ref="1006"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{403, 3}, {63, 32}}</string>
- <reference key="NSSuperview" ref="1006"/>
- <reference key="NSWindow"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSButtonCell" key="NSCell" id="182208624">
- <int key="NSCellFlags">67239424</int>
- <int key="NSCellFlags2">134217728</int>
- <string key="NSContents">Buy</string>
- <reference key="NSSupport" ref="594554432"/>
- <string key="NSCellIdentifier">_NS:9</string>
- <reference key="NSControlView" ref="54107591"/>
- <int key="NSButtonFlags">-2038284033</int>
- <int key="NSButtonFlags2">129</int>
- <string key="NSAlternateContents"/>
- <string key="NSKeyEquivalent"/>
- <int key="NSPeriodicDelay">200</int>
- <int key="NSPeriodicInterval">25</int>
- </object>
- </object>
- <object class="NSButton" id="113633755">
- <reference key="NSNextResponder" ref="1006"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{211, 3}, {173, 32}}</string>
- <reference key="NSSuperview" ref="1006"/>
- <reference key="NSWindow"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSButtonCell" key="NSCell" id="219770299">
- <int key="NSCellFlags">67239424</int>
- <int key="NSCellFlags2">134217728</int>
- <string key="NSContents">Restore Transactions</string>
- <reference key="NSSupport" ref="594554432"/>
- <string key="NSCellIdentifier">_NS:9</string>
- <reference key="NSControlView" ref="113633755"/>
- <int key="NSButtonFlags">-2038284033</int>
- <int key="NSButtonFlags2">129</int>
- <string key="NSAlternateContents"/>
- <string key="NSKeyEquivalent"/>
- <int key="NSPeriodicDelay">200</int>
- <int key="NSPeriodicInterval">25</int>
- </object>
- </object>
- </array>
- <string key="NSFrameSize">{480, 270}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="212345334"/>
- </object>
- <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
- <string key="NSMaxSize">{10000000000000, 10000000000000}</string>
- <bool key="NSWindowIsRestorable">YES</bool>
- </object>
- </array>
- <object class="IBObjectContainer" key="IBDocument.Objects">
- <array class="NSMutableArray" key="connectionRecords">
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">window</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="1005"/>
- </object>
- <int key="connectionID">3</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">inAppPurchaseTableView</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="639420569"/>
- </object>
- <int key="connectionID">27</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBActionConnection" key="connection">
- <string key="label">inAppPurchaseCancelButtonAction:</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="7538885"/>
- </object>
- <int key="connectionID">28</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBActionConnection" key="connection">
- <string key="label">buyAction:</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="54107591"/>
- </object>
- <int key="connectionID">91</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBActionConnection" key="connection">
- <string key="label">restoreTransactionsAction:</string>
- <reference key="source" ref="1001"/>
- <reference key="destination" ref="113633755"/>
- </object>
- <int key="connectionID">92</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">delegate</string>
- <reference key="source" ref="1005"/>
- <reference key="destination" ref="1001"/>
- </object>
- <int key="connectionID">4</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">dataSource</string>
- <reference key="source" ref="639420569"/>
- <reference key="destination" ref="1001"/>
- </object>
- <int key="connectionID">29</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">delegate</string>
- <reference key="source" ref="639420569"/>
- <reference key="destination" ref="1001"/>
- </object>
- <int key="connectionID">30</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">infoField</string>
- <object class="NSTableCellView" key="source" id="690393514">
- <nil key="NSNextResponder"/>
- <int key="NSvFlags">274</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSTextField" id="315263207">
- <reference key="NSNextResponder" ref="690393514"/>
- <int key="NSvFlags">266</int>
- <string key="NSFrame">{{0, 23}, {429, 17}}</string>
- <reference key="NSSuperview" ref="690393514"/>
- <reference key="NSNextKeyView" ref="808868924"/>
- <string key="NSAntiCompressionPriority">{250, 750}</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSTextFieldCell" key="NSCell" id="527704689">
- <int key="NSCellFlags">67239488</int>
- <int key="NSCellFlags2">272631808</int>
- <string key="NSContents">Value</string>
- <reference key="NSSupport" ref="594554432"/>
- <reference key="NSControlView" ref="315263207"/>
- <object class="NSColor" key="NSBackgroundColor" id="698915624">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">controlColor</string>
- <reference key="NSColor" ref="953190853"/>
- </object>
- <reference key="NSTextColor" ref="1062606848"/>
- </object>
- </object>
- <object class="NSTextField" id="808868924">
- <reference key="NSNextResponder" ref="690393514"/>
- <int key="NSvFlags">268</int>
- <string key="NSFrame">{{3, 3}, {35, 17}}</string>
- <reference key="NSSuperview" ref="690393514"/>
- <reference key="NSNextKeyView" ref="194733090"/>
- <string key="NSReuseIdentifierKey">_NS:1505</string>
- <bool key="NSEnabled">YES</bool>
- <object class="NSTextFieldCell" key="NSCell" id="199638760">
- <int key="NSCellFlags">68288064</int>
- <int key="NSCellFlags2">272630784</int>
- <string key="NSContents">Price</string>
- <reference key="NSSupport" ref="594554432"/>
- <string key="NSCellIdentifier">_NS:1505</string>
- <reference key="NSControlView" ref="808868924"/>
- <reference key="NSBackgroundColor" ref="698915624"/>
- <reference key="NSTextColor" ref="1062606848"/>
- </object>
- </object>
- </array>
- <string key="NSFrame">{{1, 1}, {429, 43}}</string>
- <reference key="NSNextKeyView" ref="315263207"/>
- </object>
- <reference key="destination" ref="315263207"/>
- </object>
- <int key="connectionID">58</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">priceField</string>
- <reference key="source" ref="690393514"/>
- <reference key="destination" ref="808868924"/>
- </object>
- <int key="connectionID">65</int>
- </object>
- </array>
- <object class="IBMutableOrderedSet" key="objectRecords">
- <array key="orderedObjects">
- <object class="IBObjectRecord">
- <int key="objectID">0</int>
- <array key="object" id="0"/>
- <reference key="children" ref="1000"/>
- <nil key="parent"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-2</int>
- <reference key="object" ref="1001"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">File's Owner</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-1</int>
- <reference key="object" ref="1003"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">First Responder</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-3</int>
- <reference key="object" ref="1004"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">Application</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">1</int>
- <reference key="object" ref="1005"/>
- <array class="NSMutableArray" key="children">
- <reference ref="1006"/>
- </array>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">2</int>
- <reference key="object" ref="1006"/>
- <array class="NSMutableArray" key="children">
- <reference ref="212345334"/>
- <object class="IBNSLayoutConstraint" id="947805605">
- <reference key="firstItem" ref="1006"/>
- <int key="firstAttribute">6</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="212345334"/>
- <int key="secondAttribute">6</int>
- <float key="multiplier">1</float>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <reference ref="7538885"/>
- <object class="IBNSLayoutConstraint" id="423613612">
- <reference key="firstItem" ref="1006"/>
- <int key="firstAttribute">4</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="7538885"/>
- <int key="secondAttribute">4</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">11</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">3</int>
- <float key="scoringTypeFloat">9</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <object class="IBNSLayoutConstraint" id="319760822">
- <reference key="firstItem" ref="7538885"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="1006"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <reference ref="54107591"/>
- <reference ref="113633755"/>
- <object class="IBNSLayoutConstraint" id="186422516">
- <reference key="firstItem" ref="113633755"/>
- <int key="firstAttribute">11</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="7538885"/>
- <int key="secondAttribute">11</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">0.0</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">6</int>
- <float key="scoringTypeFloat">24</float>
- <int key="contentType">2</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <object class="IBNSLayoutConstraint" id="664676150">
- <reference key="firstItem" ref="212345334"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="1006"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <object class="IBNSLayoutConstraint" id="952989252">
- <reference key="firstItem" ref="212345334"/>
- <int key="firstAttribute">3</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="1006"/>
- <int key="secondAttribute">3</int>
- <float key="multiplier">1</float>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <object class="IBNSLayoutConstraint" id="109649423">
- <reference key="firstItem" ref="113633755"/>
- <int key="firstAttribute">11</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="54107591"/>
- <int key="secondAttribute">11</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">0.0</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">6</int>
- <float key="scoringTypeFloat">24</float>
- <int key="contentType">2</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <object class="IBNSLayoutConstraint" id="350765948">
- <reference key="firstItem" ref="1006"/>
- <int key="firstAttribute">6</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="54107591"/>
- <int key="secondAttribute">6</int>
- <float key="multiplier">1</float>
- <object class="IBNSLayoutSymbolicConstant" key="constant">
- <double key="value">20</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <object class="IBNSLayoutConstraint" id="978795645">
- <reference key="firstItem" ref="113633755"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="1006"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">217</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">3</int>
- <float key="scoringTypeFloat">9</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="1006"/>
- </object>
- <object class="IBNSLayoutConstraint" id="70979919">
- <reference key="firstItem" ref="1006"/>
- <int key="firstAttribute">4</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="212345334"/>
- <int key="secondAttribute">4</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">42</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">3</int>
- <float key="scoringTypeFloat">9</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="1006"/>
- </object>
- </array>
- <reference key="parent" ref="1005"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">5</int>
- <reference key="object" ref="212345334"/>
- <array class="NSMutableArray" key="children">
- <reference ref="639420569"/>
- <reference ref="786855941"/>
- <reference ref="890037199"/>
- <reference ref="194733090"/>
- </array>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">6</int>
- <reference key="object" ref="639420569"/>
- <array class="NSMutableArray" key="children">
- <reference ref="314842709"/>
- </array>
- <reference key="parent" ref="212345334"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">7</int>
- <reference key="object" ref="786855941"/>
- <reference key="parent" ref="212345334"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">8</int>
- <reference key="object" ref="890037199"/>
- <reference key="parent" ref="212345334"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">9</int>
- <reference key="object" ref="194733090"/>
- <reference key="parent" ref="212345334"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">10</int>
- <reference key="object" ref="314842709"/>
- <array class="NSMutableArray" key="children">
- <reference ref="443480646"/>
- <reference ref="690393514"/>
- </array>
- <reference key="parent" ref="639420569"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">13</int>
- <reference key="object" ref="443480646"/>
- <reference key="parent" ref="314842709"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">18</int>
- <reference key="object" ref="7538885"/>
- <array class="NSMutableArray" key="children">
- <reference ref="482692348"/>
- </array>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">19</int>
- <reference key="object" ref="482692348"/>
- <reference key="parent" ref="7538885"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">31</int>
- <reference key="object" ref="690393514"/>
- <array class="NSMutableArray" key="children">
- <object class="IBNSLayoutConstraint" id="843009697">
- <reference key="firstItem" ref="315263207"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="690393514"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">3</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="690393514"/>
- </object>
- <reference ref="315263207"/>
- <object class="IBNSLayoutConstraint" id="379099087">
- <reference key="firstItem" ref="315263207"/>
- <int key="firstAttribute">3</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="690393514"/>
- <int key="secondAttribute">3</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">3</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="690393514"/>
- </object>
- <object class="IBNSLayoutConstraint" id="974997287">
- <reference key="firstItem" ref="690393514"/>
- <int key="firstAttribute">6</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="315263207"/>
- <int key="secondAttribute">6</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">3</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="690393514"/>
- </object>
- <reference ref="808868924"/>
- <object class="IBNSLayoutConstraint" id="634027280">
- <reference key="firstItem" ref="808868924"/>
- <int key="firstAttribute">5</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="690393514"/>
- <int key="secondAttribute">5</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">6</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">3</int>
- <float key="scoringTypeFloat">9</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="690393514"/>
- </object>
- <object class="IBNSLayoutConstraint" id="445445804">
- <reference key="firstItem" ref="690393514"/>
- <int key="firstAttribute">4</int>
- <int key="relation">0</int>
- <reference key="secondItem" ref="808868924"/>
- <int key="secondAttribute">4</int>
- <float key="multiplier">1</float>
- <object class="IBLayoutConstant" key="constant">
- <double key="value">3</double>
- </object>
- <float key="priority">1000</float>
- <int key="scoringType">8</int>
- <float key="scoringTypeFloat">29</float>
- <int key="contentType">3</int>
- <reference key="containingView" ref="690393514"/>
- </object>
- </array>
- <reference key="parent" ref="314842709"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">32</int>
- <reference key="object" ref="315263207"/>
- <array class="NSMutableArray" key="children">
- <reference ref="527704689"/>
- </array>
- <reference key="parent" ref="690393514"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">33</int>
- <reference key="object" ref="527704689"/>
- <reference key="parent" ref="315263207"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">37</int>
- <reference key="object" ref="843009697"/>
- <reference key="parent" ref="690393514"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">24</int>
- <reference key="object" ref="947805605"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">59</int>
- <reference key="object" ref="379099087"/>
- <reference key="parent" ref="690393514"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">60</int>
- <reference key="object" ref="974997287"/>
- <reference key="parent" ref="690393514"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">61</int>
- <reference key="object" ref="808868924"/>
- <array class="NSMutableArray" key="children">
- <reference ref="199638760"/>
- </array>
- <reference key="parent" ref="690393514"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">62</int>
- <reference key="object" ref="199638760"/>
- <reference key="parent" ref="808868924"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">63</int>
- <reference key="object" ref="634027280"/>
- <reference key="parent" ref="690393514"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">64</int>
- <reference key="object" ref="445445804"/>
- <reference key="parent" ref="690393514"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">73</int>
- <reference key="object" ref="423613612"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">74</int>
- <reference key="object" ref="319760822"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">75</int>
- <reference key="object" ref="54107591"/>
- <array class="NSMutableArray" key="children">
- <reference ref="182208624"/>
- </array>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">76</int>
- <reference key="object" ref="182208624"/>
- <reference key="parent" ref="54107591"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">79</int>
- <reference key="object" ref="113633755"/>
- <array class="NSMutableArray" key="children">
- <reference ref="219770299"/>
- </array>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">80</int>
- <reference key="object" ref="219770299"/>
- <reference key="parent" ref="113633755"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">84</int>
- <reference key="object" ref="186422516"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">85</int>
- <reference key="object" ref="664676150"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">86</int>
- <reference key="object" ref="952989252"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">87</int>
- <reference key="object" ref="109649423"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">88</int>
- <reference key="object" ref="350765948"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">89</int>
- <reference key="object" ref="978795645"/>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">90</int>
- <reference key="object" ref="70979919"/>
- <reference key="parent" ref="1006"/>
- </object>
- </array>
- </object>
- <dictionary class="NSMutableDictionary" key="flattenedProperties">
- <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="1.IBWindowTemplateEditedContentRect">{{357, 418}, {480, 270}}</string>
- <boolean value="NO" key="1.NSWindowTemplate.visibleAtLaunch"/>
- <string key="10.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="YES" key="10.isInViewBasedMode"/>
- <array key="10.prototypeCellViews">
- <reference ref="690393514"/>
- </array>
- <string key="13.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="18.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="18.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="19.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <array class="NSMutableArray" key="2.IBNSViewMetadataConstraints">
- <reference ref="947805605"/>
- <reference ref="423613612"/>
- <reference ref="319760822"/>
- <reference ref="186422516"/>
- <reference ref="664676150"/>
- <reference ref="952989252"/>
- <reference ref="109649423"/>
- <reference ref="350765948"/>
- <reference ref="978795645"/>
- <reference ref="70979919"/>
- </array>
- <string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="24.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="31.CustomClassName">InAppPurchaseTableCellView</string>
- <array class="NSMutableArray" key="31.IBNSViewMetadataConstraints">
- <reference ref="843009697"/>
- <reference ref="379099087"/>
- <reference ref="974997287"/>
- <reference ref="634027280"/>
- <reference ref="445445804"/>
- </array>
- <string key="31.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="31.userInterfaceItemIdentifier">InAppPurchaseTableCellView</string>
- <boolean value="NO" key="32.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="32.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="33.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="37.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="5.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="59.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="YES" key="6.ibExternalAutomaticallyCalculatesRowSizeFromViewHeight"/>
- <string key="60.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="61.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="61.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="62.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="63.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="64.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="7.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="73.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="74.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="75.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="75.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="76.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="NO" key="79.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
- <string key="79.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="80.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="84.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="85.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="86.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="87.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="88.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="89.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="9.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="90.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
- <nil key="activeLocalization"/>
- <dictionary class="NSMutableDictionary" key="localizations"/>
- <nil key="sourceID"/>
- <int key="maxID">92</int>
- </object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <array class="NSMutableArray" key="referencedPartialClassDescriptions">
- <object class="IBPartialClassDescription">
- <string key="className">InAppPurchaseTableCellView</string>
- <string key="superclassName">NSTableCellView</string>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="infoField">NSTextField</string>
- <string key="priceField">NSTextField</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="infoField">
- <string key="name">infoField</string>
- <string key="candidateClassName">NSTextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="priceField">
- <string key="name">priceField</string>
- <string key="candidateClassName">NSTextField</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/InAppPurchaseTableCellView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">InAppPurchaseWindowController</string>
- <string key="superclassName">NSWindowController</string>
- <object class="NSMutableDictionary" key="actions">
- <string key="NS.key.0">inAppPurchaseCancelButtonAction:</string>
- <string key="NS.object.0">id</string>
- </object>
- <object class="NSMutableDictionary" key="actionInfosByName">
- <string key="NS.key.0">inAppPurchaseCancelButtonAction:</string>
- <object class="IBActionInfo" key="NS.object.0">
- <string key="name">inAppPurchaseCancelButtonAction:</string>
- <string key="candidateClassName">id</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="outlets">
- <string key="NS.key.0">inAppPurchaseTableView</string>
- <string key="NS.object.0">NSTableView</string>
- </object>
- <object class="NSMutableDictionary" key="toOneOutletInfosByName">
- <string key="NS.key.0">inAppPurchaseTableView</string>
- <object class="IBToOneOutletInfo" key="NS.object.0">
- <string key="name">inAppPurchaseTableView</string>
- <string key="candidateClassName">NSTableView</string>
- </object>
- </object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/InAppPurchaseWindowController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSLayoutConstraint</string>
- <string key="superclassName">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/NSLayoutConstraint.h</string>
- </object>
- </object>
- </array>
- </object>
- <int key="IBDocument.localizationMode">0</int>
- <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
- <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
- <int key="IBDocument.defaultPropertyAccessControl">3</int>
- <bool key="IBDocument.UseAutolayout">YES</bool>
- </data>
-</archive>
View
3  CoreDataUtil/MFLAppDelegate.h
@@ -10,14 +10,11 @@
#import "MFLCoreDataIntrospection.h"
@class GetInfoSheetController;
-@class InAppPurchaseWindowController;
@class MFLMainWindowController;
@interface MFLAppDelegate : NSObject <NSApplicationDelegate>
-{
-}
@property (strong) MFLMainWindowController* mainWindowController;
@property (assign) IBOutlet NSWindow *window;
View
32 CoreDataUtil/MFLAppDelegate.m
@@ -10,14 +10,11 @@
#import "MFLConstants.h"
#import "MFLMainWindowController.h"
#import "OpenFileSheetController.h"
-#import "InAppPurchaseWindowController.h"
#import "MFLCoreDataEditorProjectLoader.h"
-#import "MFLInAppPurchaseHelper.h"
@interface MFLAppDelegate ()
@property (strong) OpenFileSheetController *openFileSheetController;
-@property (strong) InAppPurchaseWindowController *inAppPurchaseSheetController;
- (void) addRecentDocument: (NSURL*) recentDocumentUrl;
@@ -136,29 +133,10 @@ - (BOOL) openFileHelper: (NSString*) filename {
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
- NSLog(@"applicationDidFinishLaunching bundleId: [%@]", [[NSBundle mainBundle] bundleIdentifier]);
- NSURL *receiptUrl = [[NSBundle mainBundle] appStoreReceiptURL];
- if (![[NSFileManager defaultManager] fileExistsAtPath:[receiptUrl path]])
- {
- NSLog(@"no receipt - exit the app with code 173");
-#ifndef FORCE_FULL_VERSION
- exit(173);
-#endif
-
- }
-
- if ([[MFLInAppPurchaseHelperSubclass sharedHelper] isFullVersion] == NO) {
- // Pre-load product identifiers
- [[MFLInAppPurchaseHelperSubclass sharedHelper] productIdentifiers];
- }
-
-
if (self.mainWindowController == nil) {
self.mainWindowController = [[MFLMainWindowController alloc] initWithWindowNibName:@"MFLMainWindowController"];
}
-
-
[self setWindow:[self.mainWindowController window]];
// Open previously opened file
@@ -280,16 +258,6 @@ - (void)awakeFromNib
- (IBAction)saveAction:(id)sender
{
- // if the in-app purchase is not already purchased, prompt user to buy it
- if ([[MFLInAppPurchaseHelperSubclass sharedHelper] isFullVersion] == NO) {
- self.inAppPurchaseSheetController = [[InAppPurchaseWindowController alloc] initWithWindowNibName:@"InAppPurchaseWindowController"];
- [self.inAppPurchaseSheetController show:self.window];
- self.inAppPurchaseSheetController = nil;
- if ([[MFLInAppPurchaseHelperSubclass sharedHelper] isFullVersion] == NO) {
- return;
- }
- }
-
if (self.mainWindowController == nil)
{
return;
View
3  CoreDataUtil/MFLCellBuilder.h
@@ -7,11 +7,9 @@
//
#import <Foundation/Foundation.h>
-#import "MFLInAppPurchaseHelperSubclass.h"
@class MFLTextTableCellView;
@class MFLButtonTableViewCell;
-@class InAppPurchaseTableCellView;
@interface MFLCellBuilder : NSObject
@@ -19,6 +17,5 @@
+ (MFLTextTableCellView* ) numberCellWithString:(NSTableView *)tableView textToSet: (NSString*) textToSet owner:(id) owner;
+ (MFLTextTableCellView* ) nullCell:(NSTableView *)tableView owner:(id) owner;
+ (MFLButtonTableViewCell* ) objectCellWithString:(NSTableView *)tableView textToSet:(NSString*) textToSet owner:(id) owner;
-+ (InAppPurchaseTableCellView *)inAppPurchaseCellWithString:(NSTableView *)tableView :(NSString *)textToSet :(NSString *)priceText :(NSInteger)row :(id)owner;
@end
View
27 CoreDataUtil/MFLCellBuilder.m
@@ -10,7 +10,6 @@
#import "MFLConstants.h"
#import "MFLTextTableCellView.h"
#import "MFLButtonTableViewCell.h"
-#import "InAppPurchaseTableCellView.h"
@implementation MFLCellBuilder
@@ -61,30 +60,4 @@ + (MFLButtonTableViewCell* ) objectCellWithString:(NSTableView *)tableView textT
return buttonCell;
}
-+ (InAppPurchaseTableCellView *)inAppPurchaseCellWithString:(NSTableView *)tableView :(NSString *)textToSet :(NSString *)priceText :(NSInteger)row :(id)owner
-{
- InAppPurchaseTableCellView *cell = [tableView makeViewWithIdentifier:IN_APP_CELL owner:owner];
-
- // set value text
- [[cell infoField] setAlignment:NSLeftTextAlignment];
- [[cell infoField] setTextColor:[NSColor blackColor]];
- [[cell infoField] setStringValue:textToSet];
- [cell setToolTip:textToSet];
-
- // set price text
- [[cell priceField] setAlignment:NSLeftTextAlignment];
- [[cell priceField] setTextColor:[NSColor grayColor]];
- [[cell priceField] setStringValue:priceText];
-
- // set up button
- NSButton *buyButton = [[NSButton alloc] init];
- buyButton.frame = CGRectMake(0, 0, 72, 37);
- [buyButton setTitle:@"Buy"];
- buyButton.tag = row;
- [buyButton setTarget:owner];
- [buyButton setAction:@selector(buyButtonTapped:)];
-
- return cell;
-}
-
@end
View
6 CoreDataUtil/MFLConstants.h
@@ -9,18 +9,12 @@
#ifndef CoreDataUtil_MFLConstants_h
#define CoreDataUtil_MFLConstants_h
-// Comment this out for production version
-#ifdef DEBUG
-#define FORCE_FULL_VERSION 1
-#endif
-
#define URL_FILE_BEGINNING @"file://localhost"
#define DATE_STYLE_KEY_NAME @"dateStyleKey"
#define MFL_TEXT_CELL @"MFLTextTableViewCell"
#define MFL_BUTTON_CELL @"MFLButtonTableViewCell"
#define MFL_ENTITY_CELL @"MFLEntityTableCellView"
-#define IN_APP_CELL @"InAppPurchaseTableCellView"
#define MFL_MOM_FILE_EXTENSION @".mom"
View
11 CoreDataUtil/MFLMainWindowController.m
@@ -17,8 +17,6 @@
#import "MFLCellBuilder.h"
#import "OpenFileSheetController.h"
#import "GetInfoSheetController.h"
-#import "MFLInAppPurchaseHelperSubclass.h"
-#import "InAppPurchaseWindowController.h"
#import "FetchRequestInfoController.h"
#define kEntitiesRootNode @"rootNode"
@@ -934,15 +932,6 @@ - (NSEntityDescription *)getEntityForPredicateEditor
- (IBAction)showPredicateEditor:(id)sender
{
- // if the in-app purchase is not already purchased, prompt user to buy it
- if ([[MFLInAppPurchaseHelperSubclass sharedHelper] isFullVersion] == NO) {
- InAppPurchaseWindowController* inAppPurchaseSheetController = [[InAppPurchaseWindowController alloc] initWithWindowNibName:@"InAppPurchaseWindowController"];
- [inAppPurchaseSheetController show:self.window];
- inAppPurchaseSheetController = nil;
- if ([[MFLInAppPurchaseHelperSubclass sharedHelper] isFullVersion] == NO) {
- return;
- }
- }
NSEntityDescription *entityDescription = [self getEntityForPredicateEditor];
if (entityDescription == nil)
View
39 CoreDataUtil/Utils/MFLInAppPurchaseHelper.h
@@ -1,39 +0,0 @@
-//
-// MFLInAppPurchaseHelper.h
-// CoreDataUtil
-//
-// Created by Chris Wilson on 6/28/12.
-// Copyright (c) 2012 mFluent LLC. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "StoreKit/StoreKit.h"
-
-@interface MFLInAppPurchaseHelper : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver>
-{
- NSSet * _productIdentifiers;
- NSArray * _products;
- NSMutableSet * _purchasedProducts;
- SKProductsRequest * _request;
-}
-
-@property (retain) NSSet *productIdentifiers;
-@property (retain) NSArray * products;
-@property (retain) NSMutableSet *purchasedProducts;
-@property (retain) SKProductsRequest *request;
-
-- (void)requestProducts;
-- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers;
-
-- (void)restoreProducts;
-- (void)buyProduct:(SKProduct *)product;
-
-/*
- This indicates the user has purchased the full feature set
-
- */
-- (BOOL) isFullVersion;
-
-@end
-
-
View
156 CoreDataUtil/Utils/MFLInAppPurchaseHelper.m
@@ -1,156 +0,0 @@
-//
-// MFLInAppPurchaseHelper.m
-// CoreDataUtil
-//
-// Created by Chris Wilson on 6/28/12.
-// Copyright (c) 2012 mFluent LLC. All rights reserved.
-//
-
-#import "MFLInAppPurchaseHelper.h"
-#import "MFLConstants.h"
-
-@implementation MFLInAppPurchaseHelper
-
-- (id)initWithProductIdentifiers:(NSSet *)productIds
-{
- if ((self = [super init]))
- {
- _productIdentifiers = productIds;
-
- [[SKPaymentQueue defaultQueue] addTransactionObserver:self];
-
- // Check for previously purchased products
- NSMutableSet * purchasedProducts = [NSMutableSet set];
- for (NSString * productIdentifier in _productIdentifiers)
- {
- BOOL productPurchased = [[NSUserDefaults standardUserDefaults] boolForKey:productIdentifier];
- if (productPurchased)
- {
- [purchasedProducts addObject:productIdentifier];
- NSLog(@"Previously purchased: %@", productIdentifier);
- }
- NSLog(@"Not purchased: %@", productIdentifier);
- }
- self.purchasedProducts = purchasedProducts;
- }
-
- return self;
-}
-
-- (void)requestProducts
-{
- self.request = [[SKProductsRequest alloc] initWithProductIdentifiers:_productIdentifiers];
- _request.delegate = self;
- [_request start];
-}
-
-- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
-{
- NSLog(@"Received product results...");
- NSLog(@"response products = %@", response.products);
- NSLog(@"Invalid identifiers = %@", response.invalidProductIdentifiers);
- self.products = response.products;
-
- self.request = nil;
-
- [[NSNotificationCenter defaultCenter] postNotificationName:MFL_kProductsLoadedNotification object:_purchasedProducts];
-}
-
-- (void)recordTransaction:(SKPaymentTransaction *)transaction {
- // Optional: Record the transaction on the server side...
-}
-
-- (void)provideContent:(NSString *)productIdentifier {
-
- NSLog(@"Toggling flag for: %@", productIdentifier);
- [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:productIdentifier];
- [[NSUserDefaults standardUserDefaults] synchronize];
- [_purchasedProducts addObject:productIdentifier];
-
- [[NSNotificationCenter defaultCenter] postNotificationName:MFL_kProductPurchasedNotification object:productIdentifier];
-
-}
-
-- (void)completeTransaction:(SKPaymentTransaction *)transaction {
-
- NSLog(@"completeTransaction...");
-
- [self recordTransaction: transaction];
- [self provideContent: transaction.payment.productIdentifier];
- [[SKPaymentQueue defaultQueue] finishTransaction: transaction];
-
-}
-
-- (void)restoreTransaction:(SKPaymentTransaction *)transaction {
-
- NSLog(@"restoreTransaction...");
-
- [self recordTransaction: transaction];
- [self provideContent: transaction.originalTransaction.payment.productIdentifier];
- [[SKPaymentQueue defaultQueue] finishTransaction: transaction];
-
-}
-
-- (void)failedTransaction:(SKPaymentTransaction *)transaction {
-
- if (transaction.error.code != SKErrorPaymentCancelled)
- {
- NSLog(@"Transaction error: %@", transaction.error.localizedDescription);
- }
-
- [[NSNotificationCenter defaultCenter] postNotificationName:MFL_kProductPurchaseFailedNotification object:transaction];
-
- [[SKPaymentQueue defaultQueue] finishTransaction: transaction];
-
-}
-
-- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
-{
- for (SKPaymentTransaction *transaction in transactions)
- {
- switch (transaction.transactionState)
- {
- case SKPaymentTransactionStatePurchasing:
- NSLog(@"SKPaymentTransactionStatePurchasing");
- // ignore
- break;
- case SKPaymentTransactionStatePurchased:
- [self completeTransaction:transaction];
- break;
- case SKPaymentTransactionStateFailed:
- [self failedTransaction:transaction];
- break;
- case SKPaymentTransactionStateRestored:
- [self restoreTransaction:transaction];
- break;
- default:
- NSLog(@"Uh Oh! Not sure what happened here!!! [%ld]", transaction.transactionState);
- break;
- }
- }
-}
-
-- (void)buyProduct:(SKProduct *)product {
-
- NSLog(@"Buying: %@", product.productIdentifier);
-
- SKPayment *payment = [SKPayment paymentWithProduct:product];
- [[SKPaymentQueue defaultQueue] addPayment:payment];
-}
-
-
-- (void)restoreProducts {
-
- NSLog(@"restoreCompletedTransactions");
- [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
-}
-
-- (BOOL) isFullVersion {
-#ifdef FORCE_FULL_VERSION
- return YES;
-#endif
-
- return [[NSUserDefaults standardUserDefaults] boolForKey:MFL_FULL_VERSION_IDENTIFIER];
-}
-
-@end
View
16 CoreDataUtil/Utils/MFLInAppPurchaseHelperSubclass.h
@@ -1,16 +0,0 @@
-//
-// MFLInAppPurchaseHelperSubclass.h
-// CoreDataUtil
-//
-// Created by Laurie Caires on 6/29/12.
-// Copyright (c) 2012 mFluent LLC. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "MFLInAppPurchaseHelper.h"
-
-@interface MFLInAppPurchaseHelperSubclass : MFLInAppPurchaseHelper
-
-+ (MFLInAppPurchaseHelperSubclass *)sharedHelper;
-
-@end
View
41 CoreDataUtil/Utils/MFLInAppPurchaseHelperSubclass.m
@@ -1,41 +0,0 @@
-//
-// MFLInAppPurchaseHelperSubclass.m
-// CoreDataUtil
-//
-// Created by Laurie Caires on 6/29/12.
-// Copyright (c) 2012 mFluent LLC. All rights reserved.
-//
-
-#import "MFLInAppPurchaseHelperSubclass.h"
-#import "MFLConstants.h"
-
-@implementation MFLInAppPurchaseHelperSubclass
-
-static MFLInAppPurchaseHelperSubclass * _sharedHelper;
-
-+ (MFLInAppPurchaseHelperSubclass *) sharedHelper
-{
- if (_sharedHelper != nil)
- {
- return _sharedHelper;
- }
-
- _sharedHelper = [[MFLInAppPurchaseHelperSubclass alloc] init];
- return _sharedHelper;
-}
-
-- (id)init
-{
- NSSet *productIdentifiers = [NSSet setWithObjects:
- MFL_FULL_VERSION_IDENTIFIER,
- nil];
-
- if ((self = [super initWithProductIdentifiers:productIdentifiers]))
- {
-
- }
-
- return self;
-}
-
-@end

0 comments on commit cf9c46b

Please sign in to comment.
Something went wrong with that request. Please try again.