summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-03-29 02:50:35 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-03-29 02:50:35 +0000
commit97bb0560b9d2e2ef44e86bde2d52cf9093b0c0da (patch)
treede8ecfba4234fb711f12064b1f4f6fa174345ec3
parent4b451d014b0e8dbbe71c61eee19445b567a2e581 (diff)
downloadpcsxr-97bb0560b9d2e2ef44e86bde2d52cf9093b0c0da.tar.gz
OS X: Refactoring.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@89712 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--macosx/CheatController.h19
-rw-r--r--macosx/CheatController.m95
-rw-r--r--macosx/Pcsxr.xcodeproj/project.pbxproj6
-rw-r--r--macosx/PcsxrHexadecimalFormatter.h4
-rw-r--r--macosx/PcsxrHexadecimalFormatter.m32
-rw-r--r--macosx/Resources/Base.lproj/CheatWindow.xib106
6 files changed, 128 insertions, 134 deletions
diff --git a/macosx/CheatController.h b/macosx/CheatController.h
index fc53129c..c56f2a68 100644
--- a/macosx/CheatController.h
+++ b/macosx/CheatController.h
@@ -4,8 +4,25 @@
//
#import <Cocoa/Cocoa.h>
+#import "PcsxrHexadecimalFormatter.h"
+#include "psxcommon.h"
+#include "cheat.h"
-@class PcsxrHexadecimalFormatter;
+@interface PcsxrCheatTempObject : NSObject <NSCopying>
+@property (readwrite) uint32_t cheatAddress;
+@property (readwrite) uint16_t cheatValue;
+
+- (instancetype)initWithAddress:(uint32_t)add value:(uint16_t)val;
+- (instancetype)initWithCheatCode:(CheatCode *)theCheat;
+@end
+
+@interface PcsxrCheatTemp : NSObject
+@property (readwrite, strong) NSMutableArray *cheatValues;
+@property (readwrite, strong) NSString *cheatName;
+@property (readwrite, getter = isEnabled) BOOL enabled;
+
+- (instancetype)initWithCheat:(Cheat *)theCheat;
+@end
@interface CheatController : NSWindowController <NSWindowDelegate, NSTableViewDelegate>
diff --git a/macosx/CheatController.m b/macosx/CheatController.m
index acae6fbd..ebe73137 100644
--- a/macosx/CheatController.m
+++ b/macosx/CheatController.m
@@ -4,8 +4,6 @@
//
#import <Cocoa/Cocoa.h>
-#include "psxcommon.h"
-#include "cheat.h"
#import "CheatController.h"
#import "PcsxrCheatHandler.h"
#import "PcsxrHexadecimalFormatter.h"
@@ -13,75 +11,39 @@
#define kTempCheatCodesName @"tempCheatCodes"
#define kCheatsName @"cheats"
-@interface PcsxrCheatTempObject : NSObject <NSCopying>
-@property (readwrite) uint32_t address;
-@property (readwrite, weak) NSNumber* addressNS;
-@property (readwrite) uint16_t value;
-@property (readwrite, weak) NSNumber* valueNS;
-
-- (id)initWithAddress:(uint32_t)add value:(uint16_t)val;
-- (id)initWithCheatCode:(CheatCode *)theCheat;
-@end
-
-@interface PcsxrCheatTemp : NSObject
-@property (readwrite, strong) NSMutableArray *cheatValues;
-@property (readwrite, strong) NSString *cheatName;
-@property (readwrite, getter = isEnabled) BOOL enabled;
-
-- (id)initWithCheat:(Cheat *)theCheat;
-@end
-
@implementation PcsxrCheatTempObject
-@synthesize address, value;
-
-- (NSNumber *)addressNS
-{
- return @(self.address);
-}
-- (void)setAddressNS:(NSNumber *)addressNS
-{
- self.address = [addressNS unsignedIntValue];
-}
-
-- (NSNumber *)valueNS
-{
- return @(self.value);
-}
-- (void)setValueNS:(NSNumber *)valueNS
-{
- self.value = [valueNS unsignedShortValue];
-}
+@synthesize cheatAddress, cheatValue;
-- (id)init
+- (instancetype)init
{
return [self initWithAddress:0x10000000 value:0];
}
-- (id)initWithAddress:(uint32_t)add value:(uint16_t)val
+- (instancetype)initWithAddress:(uint32_t)add value:(uint16_t)val
{
if (self = [super init]) {
- self.address = add;
- self.value = val;
+ self.cheatAddress = add;
+ self.cheatValue = val;
}
return self;
}
-- (id)initWithCheatCode:(CheatCode *)theCheat
+- (instancetype)initWithCheatCode:(CheatCode *)theCheat
{
return [self initWithAddress:theCheat->Addr value:theCheat->Val];
}
- (NSString*)description
{
- return [NSString stringWithFormat:@"%08x %04x", address, value];
+ return [NSString stringWithFormat:@"%08x %04x", cheatAddress, cheatValue];
}
- (BOOL)isEqual:(id)object
{
if ([object isKindOfClass:[PcsxrCheatTempObject class]]) {
- if (address != [(PcsxrCheatTempObject*)object address]) {
+ if (cheatAddress != [object cheatAddress]) {
return NO;
- } else if (value != [(PcsxrCheatTempObject*)object value]) {
+ } else if (cheatValue != [object cheatValue]) {
return NO;
} else
return YES;
@@ -91,12 +53,12 @@
- (NSUInteger)hash
{
- return address ^ value;
+ return cheatAddress ^ cheatValue;
}
- (id)copyWithZone:(NSZone *)zone
{
- return [[[self class] allocWithZone:zone] initWithAddress:address value:value];
+ return [[[self class] allocWithZone:zone] initWithAddress:cheatAddress value:cheatValue];
}
@end
@@ -106,7 +68,7 @@
@synthesize cheatValues;
@synthesize enabled;
-- (id)initWithCheat:(Cheat *)theCheat
+- (instancetype)initWithCheat:(Cheat *)theCheat
{
if (self = [super init]) {
self.cheatName = @(theCheat->Descr);
@@ -143,12 +105,12 @@
return @"CheatWindow";
}
-- (id)init
+- (instancetype)init
{
return self = [self initWithWindowNibName:@"CheatWindow"];
}
-- (id)initWithCoder:(NSCoder *)aDecoder
+- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
if (self = [super initWithCoder:aDecoder]) {
self.tempCheatCodes = [NSMutableArray array];
@@ -156,7 +118,7 @@
return self;
}
-- (id)initWithWindow:(NSWindow *)window
+- (instancetype)initWithWindow:(NSWindow *)window
{
if (self = [super initWithWindow:window]) {
self.tempCheatCodes = [NSMutableArray array];
@@ -225,7 +187,7 @@
- (IBAction)clear:(id)sender
{
- self.cheats = [NSMutableArray array];
+ self.cheats = [[NSMutableArray alloc] init];
}
- (IBAction)closeCheatEdit:(id)sender
@@ -269,19 +231,6 @@
[manager removeItemAtURL:tmpURL error:NULL];
}
-- (void)editCheatCodeSheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
-{
- if (returnCode == NSOKButton) {
- PcsxrCheatTemp *tmpCheat = (self.cheats)[[cheatView selectedRow]];
- if (![tmpCheat.cheatValues isEqualToArray:self.tempCheatCodes]) {
- tmpCheat.cheatValues = self.tempCheatCodes;
- [self setDocumentEdited:YES];
- }
- }
-
- [sheet orderOut:nil];
-}
-
- (IBAction)editCheat:(id)sender
{
if ([cheatView selectedRow] < 0) {
@@ -291,7 +240,17 @@
NSMutableArray *tmpArray = [(self.cheats)[[cheatView selectedRow]] cheatValues];
NSMutableArray *newCheats = [[NSMutableArray alloc] initWithArray:tmpArray copyItems:YES];
self.tempCheatCodes = newCheats;
- [NSApp beginSheet:editCheatWindow modalForWindow:[self window] modalDelegate:self didEndSelector:@selector(editCheatCodeSheetDidEnd:returnCode:contextInfo:) contextInfo:NULL];
+ [[self window] beginSheet:editCheatWindow completionHandler:^(NSModalResponse returnCode) {
+ if (returnCode == NSOKButton) {
+ PcsxrCheatTemp *tmpCheat = (self.cheats)[[cheatView selectedRow]];
+ if (![tmpCheat.cheatValues isEqualToArray:self.tempCheatCodes]) {
+ tmpCheat.cheatValues = self.tempCheatCodes;
+ [self setDocumentEdited:YES];
+ }
+ }
+
+ [editCheatWindow orderOut:nil];
+ }];
}
- (IBAction)addCheat:(id)sender
diff --git a/macosx/Pcsxr.xcodeproj/project.pbxproj b/macosx/Pcsxr.xcodeproj/project.pbxproj
index 2477fe68..28d1cde0 100644
--- a/macosx/Pcsxr.xcodeproj/project.pbxproj
+++ b/macosx/Pcsxr.xcodeproj/project.pbxproj
@@ -3368,6 +3368,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 55858D2B17864DC90068B8FC /* Pcsxr-Instrument.xcconfig */;
buildSettings = {
+ CLANG_ENABLE_MODULES = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
@@ -3395,6 +3396,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = PCSXR;
+ CLANG_ENABLE_MODULES = NO;
GCC_ENABLE_ASM_KEYWORD = YES;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
@@ -3590,6 +3592,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = PCSXR;
+ CLANG_ENABLE_MODULES = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
DEBUG_PREPROCESSOR_DEFINITIONS = "$(inherited) EMU_LOG=__Log";
GCC_ENABLE_ASM_KEYWORD = YES;
@@ -3616,6 +3619,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = PCSXR;
+ CLANG_ENABLE_MODULES = NO;
GCC_ENABLE_ASM_KEYWORD = YES;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
@@ -3642,6 +3646,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 55858D2A17864DC80068B8FC /* Pcsxr-Debug.xcconfig */;
buildSettings = {
+ CLANG_ENABLE_MODULES = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
@@ -3670,6 +3675,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 55858D2C17864DC90068B8FC /* Pcsxr-Release.xcconfig */;
buildSettings = {
+ CLANG_ENABLE_MODULES = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
diff --git a/macosx/PcsxrHexadecimalFormatter.h b/macosx/PcsxrHexadecimalFormatter.h
index ef9c1601..63a3da44 100644
--- a/macosx/PcsxrHexadecimalFormatter.h
+++ b/macosx/PcsxrHexadecimalFormatter.h
@@ -9,10 +9,6 @@
#import <Foundation/Foundation.h>
@interface PcsxrHexadecimalFormatter : NSFormatter
-{
- char hexPadding;
- NSString *hexFormatString;
-}
@property (nonatomic) char hexPadding;
@end
diff --git a/macosx/PcsxrHexadecimalFormatter.m b/macosx/PcsxrHexadecimalFormatter.m
index c6b5f849..550a7cb1 100644
--- a/macosx/PcsxrHexadecimalFormatter.m
+++ b/macosx/PcsxrHexadecimalFormatter.m
@@ -9,20 +9,19 @@
#import "PcsxrHexadecimalFormatter.h"
@interface PcsxrHexadecimalFormatter ()
-@property (readwrite, retain) NSString *hexFormatString;
-
+@property (strong) NSString *hexFormatString;
@end
@implementation PcsxrHexadecimalFormatter
@synthesize hexPadding;
+@synthesize hexFormatString;
+
- (void)setHexPadding:(char)_hexPadding
{
hexPadding = _hexPadding;
self.hexFormatString = [NSString stringWithFormat:@"0x%%0%ilx", hexPadding];
}
-@synthesize hexFormatString;
-
- (id)init
{
if (self = [super init]) {
@@ -64,18 +63,25 @@
- (BOOL)getObjectValue:(out id *)obj forString:(NSString *)string errorDescription:(out NSString **)error
{
NSString *tmpstr = nil;
- if ([string hasPrefix:@"0x"]) {
- NSRange zeroXRange = [string rangeOfString:@"0x"];
- tmpstr = [string stringByReplacingCharactersInRange:zeroXRange withString:@""];
- }else {
- tmpstr = string;
- }
- long tmpNum = 0;
- if (sscanf([tmpstr UTF8String], "%lx", &tmpNum) == 1) {
+ unsigned int tmpNum;
+ NSScanner *theScan = [[NSScanner alloc] initWithString:string];
+ if ([theScan scanHexInt:&tmpNum]) {
*obj = @(tmpNum);
return YES;
} else {
- return NO;
+ if ([string hasPrefix:@"0x"]) {
+ NSRange zeroXRange = [string rangeOfString:@"0x"];
+ tmpstr = [string stringByReplacingCharactersInRange:zeroXRange withString:@""];
+ }else {
+ tmpstr = string;
+ }
+ long tmpNum = 0;
+ if (sscanf([tmpstr UTF8String], "%lx", &tmpNum) == 1) {
+ *obj = @(tmpNum);
+ return YES;
+ } else {
+ return NO;
+ }
}
}
diff --git a/macosx/Resources/Base.lproj/CheatWindow.xib b/macosx/Resources/Base.lproj/CheatWindow.xib
index a45561fb..2fbd6c0d 100644
--- a/macosx/Resources/Base.lproj/CheatWindow.xib
+++ b/macosx/Resources/Base.lproj/CheatWindow.xib
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13C64" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
- <deployment defaultVersion="1090" identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
+ <deployment defaultVersion="1080" identifier="macosx"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="CheatController">
@@ -17,7 +17,7 @@
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application"/>
- <window title="Cheats" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" wantsToBeColor="NO" visibleAtLaunch="NO" animationBehavior="default" id="1">
+ <window title="Cheats" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="1">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="153" width="698" height="357"/>
@@ -128,8 +128,8 @@
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
- <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="78">
- <rect key="frame" x="611" y="13" width="73" height="32"/>
+ <button toolTip="Clear all cheats" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="78">
+ <rect key="frame" x="530" y="13" width="73" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="push" title="Clear" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="79">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -139,71 +139,82 @@
<action selector="clear:" target="-2" id="109"/>
</connections>
</button>
- <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="129">
- <rect key="frame" x="302" y="13" width="77" height="32"/>
+ <button toolTip="Apply Cheats" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="256">
+ <rect key="frame" x="454" y="13" width="76" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="push" title="Edit…" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="130">
+ <buttonCell key="cell" type="push" title="Apply" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="257">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
- <action selector="editCheat:" target="-2" id="163"/>
+ <action selector="applyCheats:" target="-2" id="262"/>
</connections>
</button>
- <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="206">
- <rect key="frame" x="469" y="13" width="66" height="32"/>
+ <button toolTip="Add Cheat" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="xfd-rR-U91">
+ <rect key="frame" x="629" y="27" width="25" height="27"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="207">
+ <constraints>
+ <constraint firstAttribute="height" constant="25" id="5Sw-u5-HYP"/>
+ <constraint firstAttribute="width" constant="25" id="TzG-MJ-Gw5"/>
+ </constraints>
+ <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="oPm-T9-TZo">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
- <action selector="addCheat:" target="-2" id="213"/>
+ <action selector="addCheat:" target="-2" id="bsH-Bq-b9L"/>
</connections>
</button>
- <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="227">
- <rect key="frame" x="379" y="13" width="90" height="32"/>
+ <button toolTip="Remove Cheat" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="DBF-Fx-sqP">
+ <rect key="frame" x="653" y="27" width="25" height="27"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="push" title="Remove" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="228">
+ <constraints>
+ <constraint firstAttribute="width" constant="25" id="C9G-EI-fyW"/>
+ <constraint firstAttribute="height" constant="25" id="l7b-a6-zzp"/>
+ </constraints>
+ <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="7QM-jz-tbx">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
- <action selector="removeCheats:" target="-2" id="253"/>
+ <action selector="removeCheats:" target="-2" id="are-w2-Cx9"/>
</connections>
</button>
- <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="256">
- <rect key="frame" x="535" y="13" width="76" height="32"/>
+ <button toolTip="Edit Cheat" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ORW-Vw-Xqo">
+ <rect key="frame" x="605" y="27" width="25" height="27"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <buttonCell key="cell" type="push" title="Apply" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="257">
+ <constraints>
+ <constraint firstAttribute="width" constant="25" id="e0J-6O-4Ih"/>
+ <constraint firstAttribute="height" constant="25" id="pQO-S9-udY"/>
+ </constraints>
+ <buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSActionTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="iOw-6s-6s3">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
- <action selector="applyCheats:" target="-2" id="262"/>
+ <action selector="editCheat:" target="-2" id="8bd-ja-6Gx"/>
</connections>
</button>
</subviews>
<constraints>
- <constraint firstItem="6" firstAttribute="baseline" secondItem="4" secondAttribute="baseline" id="115"/>
- <constraint firstAttribute="trailing" secondItem="23" secondAttribute="trailing" constant="20" symbolic="YES" id="116"/>
- <constraint firstItem="23" firstAttribute="top" secondItem="2" secondAttribute="top" constant="20" symbolic="YES" id="118"/>
- <constraint firstItem="6" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="121"/>
- <constraint firstAttribute="bottom" secondItem="6" secondAttribute="bottom" constant="20" symbolic="YES" id="122"/>
- <constraint firstItem="23" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="124"/>
- <constraint firstItem="4" firstAttribute="leading" secondItem="6" secondAttribute="trailing" constant="12" symbolic="YES" id="125"/>
- <constraint firstAttribute="trailing" secondItem="78" secondAttribute="trailing" constant="20" symbolic="YES" id="128"/>
- <constraint firstItem="129" firstAttribute="baseline" secondItem="4" secondAttribute="baseline" id="131"/>
- <constraint firstItem="206" firstAttribute="baseline" secondItem="129" secondAttribute="baseline" id="208"/>
- <constraint firstItem="227" firstAttribute="baseline" secondItem="206" secondAttribute="baseline" id="229"/>
- <constraint firstItem="256" firstAttribute="baseline" secondItem="227" secondAttribute="baseline" id="258"/>
- <constraint firstItem="78" firstAttribute="leading" secondItem="256" secondAttribute="trailing" constant="12" symbolic="YES" id="259"/>
- <constraint firstItem="256" firstAttribute="baseline" secondItem="78" secondAttribute="baseline" id="260"/>
- <constraint firstItem="256" firstAttribute="top" secondItem="23" secondAttribute="bottom" constant="20" symbolic="YES" id="I40-Zw-qK6"/>
- <constraint firstItem="227" firstAttribute="leading" secondItem="129" secondAttribute="trailing" constant="12" symbolic="YES" id="KeM-eV-qI0"/>
- <constraint firstItem="256" firstAttribute="leading" secondItem="206" secondAttribute="trailing" constant="12" symbolic="YES" id="Uxw-1R-7YH"/>
- <constraint firstItem="129" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="4" secondAttribute="trailing" constant="40" id="WWq-7H-UP0"/>
- <constraint firstItem="206" firstAttribute="leading" secondItem="227" secondAttribute="trailing" constant="12" symbolic="YES" id="xlv-fw-Maa"/>
+ <constraint firstItem="78" firstAttribute="baseline" secondItem="4" secondAttribute="baseline" id="82n-9F-8bg"/>
+ <constraint firstItem="4" firstAttribute="leading" secondItem="6" secondAttribute="trailing" constant="12" symbolic="YES" id="9lp-BB-TZI"/>
+ <constraint firstItem="6" firstAttribute="top" secondItem="23" secondAttribute="bottom" constant="20" symbolic="YES" id="E2i-TS-P4E"/>
+ <constraint firstAttribute="trailing" secondItem="23" secondAttribute="trailing" constant="20" symbolic="YES" id="EiP-6U-3B3"/>
+ <constraint firstItem="xfd-rR-U91" firstAttribute="leading" secondItem="ORW-Vw-Xqo" secondAttribute="trailing" constant="-1" id="GvR-cn-We8"/>
+ <constraint firstItem="23" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="JRi-3E-R7a"/>
+ <constraint firstItem="DBF-Fx-sqP" firstAttribute="leading" secondItem="xfd-rR-U91" secondAttribute="trailing" constant="-1" id="Liv-0d-lNG"/>
+ <constraint firstItem="DBF-Fx-sqP" firstAttribute="baseline" secondItem="ORW-Vw-Xqo" secondAttribute="baseline" id="O2e-SZ-KXh"/>
+ <constraint firstItem="6" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="U1b-J8-Mn7"/>
+ <constraint firstItem="23" firstAttribute="top" secondItem="2" secondAttribute="top" constant="20" symbolic="YES" id="Uzz-Lw-v8y"/>
+ <constraint firstItem="DBF-Fx-sqP" firstAttribute="baseline" secondItem="xfd-rR-U91" secondAttribute="baseline" id="fPo-Kl-XqG"/>
+ <constraint firstItem="ORW-Vw-Xqo" firstAttribute="leading" secondItem="78" secondAttribute="trailing" constant="8" symbolic="YES" id="g3Z-Wu-0w1"/>
+ <constraint firstItem="DBF-Fx-sqP" firstAttribute="top" secondItem="23" secondAttribute="bottom" constant="8" symbolic="YES" id="gcQ-KX-9BU"/>
+ <constraint firstAttribute="bottom" secondItem="6" secondAttribute="bottom" constant="20" symbolic="YES" id="lF8-2f-uaL"/>
+ <constraint firstItem="78" firstAttribute="leading" secondItem="256" secondAttribute="trailing" constant="12" symbolic="YES" id="pZV-X6-uam"/>
+ <constraint firstItem="78" firstAttribute="baseline" secondItem="256" secondAttribute="baseline" id="r4R-02-9tu"/>
+ <constraint firstItem="4" firstAttribute="baseline" secondItem="6" secondAttribute="baseline" id="rAO-NL-fo9"/>
+ <constraint firstAttribute="trailing" secondItem="DBF-Fx-sqP" secondAttribute="trailing" constant="20" symbolic="YES" id="xvQ-3b-NaW"/>
</constraints>
</view>
<connections>
@@ -247,7 +258,7 @@
</textFieldCell>
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<connections>
- <binding destination="219" name="value" keyPath="arrangedObjects.addressNS" id="244"/>
+ <binding destination="219" name="value" keyPath="arrangedObjects.cheatAddress" id="aeS-gI-Rzd"/>
</connections>
</tableColumn>
<tableColumn identifier="Value" width="144" minWidth="40" maxWidth="1000" id="142">
@@ -264,7 +275,7 @@
</textFieldCell>
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<connections>
- <binding destination="219" name="value" keyPath="arrangedObjects.valueNS" id="245"/>
+ <binding destination="219" name="value" keyPath="arrangedObjects.cheatValue" id="k6k-fN-x0Z"/>
</connections>
</tableColumn>
</tableColumns>
@@ -321,7 +332,7 @@ Gw
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<constraints>
<constraint firstAttribute="height" constant="25" id="199"/>
- <constraint firstAttribute="width" constant="25" id="233"/>
+ <constraint firstAttribute="width" constant="25" id="55i-4W-DPp"/>
</constraints>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="NSAddTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="176">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -335,7 +346,7 @@ Gw
<rect key="frame" x="44" y="20" width="25" height="25"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<constraints>
- <constraint firstAttribute="width" constant="25" id="235"/>
+ <constraint firstAttribute="width" constant="25" id="hHo-S2-lBN"/>
</constraints>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="NSRemoveTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="180">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -359,9 +370,7 @@ Gw
<constraint firstItem="175" firstAttribute="bottom" secondItem="156" secondAttribute="bottom" id="BiT-cB-72z"/>
<constraint firstItem="179" firstAttribute="top" secondItem="136" secondAttribute="bottom" constant="8" symbolic="YES" id="Ehy-91-5kl"/>
<constraint firstItem="152" firstAttribute="baseline" secondItem="156" secondAttribute="baseline" id="G4C-ss-lMH"/>
- <constraint firstItem="175" firstAttribute="height" secondItem="179" secondAttribute="height" id="cDU-nE-cHi"/>
<constraint firstItem="175" firstAttribute="bottom" secondItem="179" secondAttribute="bottom" id="dA3-Bb-69x"/>
- <constraint firstItem="175" firstAttribute="width" secondItem="179" secondAttribute="width" id="krz-I3-Qzw"/>
</constraints>
</view>
</window>
@@ -377,7 +386,8 @@ Gw
</arrayController>
</objects>
<resources>
+ <image name="NSActionTemplate" width="14" height="14"/>
<image name="NSAddTemplate" width="8" height="8"/>
<image name="NSRemoveTemplate" width="8" height="8"/>
</resources>
-</document> \ No newline at end of file
+</document>