Permalink
Browse files

Adds memory keys.

  • Loading branch information...
1 parent 7bb801a commit 5d4a9fde1b8a1afb598b28709303ae8df61d153c @zonble committed Mar 7, 2012
Showing with 355 additions and 123 deletions.
  1. +6 −0 SillyCal/SCViewController.h
  2. +48 −28 SillyCal/SCViewController.m
  3. +301 −95 SillyCal/en.lproj/SCViewController.xib
View
6 SillyCal/SCViewController.h
@@ -2,6 +2,7 @@
{
NSDecimalNumber *leftOprand;
NSDecimalNumber *rightOprand;
+ NSDecimalNumber *memory;
SEL operatorSelector;
BOOL resetTextLabelOnNextAppending;
@@ -14,9 +15,14 @@
- (IBAction)setOperator:(id)sender;
- (IBAction)doCalculation:(id)sender;
- (IBAction)togglePositiveNegative:(id)sender;
+- (IBAction)memoryClear:(id)sender;
+- (IBAction)memoryPlus:(id)sender;
+- (IBAction)memoryMinus:(id)sender;
+- (IBAction)memoryRecall:(id)sender;
@property (retain, nonatomic) NSDecimalNumber *leftOprand;
@property (retain, nonatomic) NSDecimalNumber *rightOprand;
+@property (retain, nonatomic) NSDecimalNumber *memory;
@property (retain, nonatomic) IBOutlet UILabel *textLabel;
@property (retain, nonatomic) IBOutlet UILabel *operatorLabel;
View
76 SillyCal/SCViewController.m
@@ -6,7 +6,7 @@ @implementation SCViewController
- (void)dealloc
{
- [leftOprand release], [rightOprand release];
+ [leftOprand release], [rightOprand release], [memory release];
[textLabel release], [operatorLabel release];
[super dealloc];
}
@@ -53,13 +53,10 @@ - (IBAction)appendText:(id)sender
}
return;
}
- if ([s isEqualToString:@"0"]) {
- if ([textLabel.text isEqualToString:@"0"]) {
+ if ([textLabel.text isEqualToString:@"0"]) {
+ if ([s isEqualToString:@"0"]) {
return;
}
- }
-
- if ([textLabel.text isEqualToString:@"0"]) {
textLabel.text = s;
}
else {
@@ -87,21 +84,6 @@ - (void)_doCalculation
- (IBAction)setOperator:(id)sender
{
- SEL selector = NULL;
- NSString *s = [(UIButton *)sender titleLabel].text;
- if ([s isEqualToString:@"+"]) {
- selector = @selector(decimalNumberByAdding:);
- }
- else if ([s isEqualToString:@"-"]) {
- selector = @selector(decimalNumberBySubtracting:);
- }
- else if ([s isEqualToString:@"*"]) {
- selector = @selector(decimalNumberByMultiplyingBy:);
- }
- else if ([s isEqualToString:@"/"]) {
- selector = @selector(decimalNumberByDividingBy:);
- }
-
if (!self.leftOprand) {
self.leftOprand = [NSDecimalNumber decimalNumberWithString:self.textLabel.text];
self.rightOprand = nil;
@@ -110,18 +92,21 @@ - (IBAction)setOperator:(id)sender
self.rightOprand = [NSDecimalNumber decimalNumberWithString:self.textLabel.text];
[self _doCalculation];
}
-
- operatorSelector = selector;
+
+ NSString *s = [(UIButton *)sender titleLabel].text;
+ NSDictionary *keySelectorMap = [NSDictionary dictionaryWithObjectsAndKeys:
+ @"decimalNumberByAdding:", @"+",
+ @"decimalNumberBySubtracting:", @"-",
+ @"decimalNumberByMultiplyingBy:", @"*",
+ @"decimalNumberByDividingBy:", @"/", nil];
+ operatorSelector = NSSelectorFromString([keySelectorMap objectForKey:s]);
self.operatorLabel.text = s;
resetTextLabelOnNextAppending = YES;
}
- (IBAction)doCalculation:(id)sender
{
- if (operatorSelector == NULL) {
- return;
- }
- if (!self.leftOprand) {
+ if (operatorSelector == NULL || !self.leftOprand) {
return;
}
self.rightOprand = [NSDecimalNumber decimalNumberWithString:self.textLabel.text];
@@ -140,8 +125,43 @@ - (IBAction)togglePositiveNegative:(id)sender
self.textLabel.text = [s hasPrefix:@"-"] ? [s substringFromIndex:1] : [@"-" stringByAppendingString:s];
}
+- (IBAction)memoryClear:(id)sender
+{
+ self.memory = [NSDecimalNumber decimalNumberWithString:@"0"];
+}
+
+- (IBAction)memoryPlus:(id)sender
+{
+ if (!self.memory) {
+ self.memory = [NSDecimalNumber decimalNumberWithString:@"0"];
+ }
+ self.memory = [self.memory decimalNumberByAdding:[NSDecimalNumber decimalNumberWithString:self.textLabel.text]];
+ resetTextLabelOnNextAppending = YES;
+}
+
+- (IBAction)memoryMinus:(id)sender
+{
+ if (!self.memory) {
+ self.memory = [NSDecimalNumber decimalNumberWithString:@"0"];
+ }
+ self.memory = [self.memory decimalNumberBySubtracting:[NSDecimalNumber decimalNumberWithString:self.textLabel.text]];
+ resetTextLabelOnNextAppending = YES;
+}
+
+- (IBAction)memoryRecall:(id)sender
+{
+ if (!self.memory) {
+ self.memory = [NSDecimalNumber decimalNumberWithString:@"0"];
+ }
+ self.textLabel.text = [self.memory stringValue];
+ if (!operatorSelector) {
+ self.leftOprand = [[self.memory copy] autorelease];
+ }
+ resetTextLabelOnNextAppending = YES;
+}
+
#pragma mark Properties
-@synthesize leftOprand, rightOprand;
+@synthesize leftOprand, rightOprand, memory;
@synthesize textLabel, operatorLabel;
@end
View
396 SillyCal/en.lproj/SCViewController.xib
@@ -11,11 +11,11 @@
<string key="NS.object.0">1173</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
- <string>IBUINavigationBar</string>
+ <string>IBUILabel</string>
<string>IBUINavigationItem</string>
<string>IBUIButton</string>
<string>IBUIView</string>
- <string>IBUILabel</string>
+ <string>IBUINavigationBar</string>
<string>IBProxyObject</string>
</array>
<array key="IBDocument.PluginDependencies">
@@ -41,10 +41,10 @@
<object class="IBUIButton" id="603181903">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{26, 207}, {61, 37}}</string>
+ <string key="NSFrame">{{26, 221}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="746443476"/>
+ <reference key="NSNextKeyView" ref="404022130"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@@ -74,12 +74,13 @@
<int key="NSfFlags">16</int>
</object>
</object>
- <object class="IBUIButton" id="824147081">
+ <object class="IBUIButton" id="404022130">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{95, 207}, {61, 37}}</string>
+ <string key="NSFrame">{{95, 221}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="746443476"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@@ -99,7 +100,7 @@
<object class="IBUIButton" id="746443476">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{164, 207}, {61, 37}}</string>
+ <string key="NSFrame">{{164, 221}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="529313840"/>
@@ -122,7 +123,7 @@
<object class="IBUIButton" id="529313840">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{233, 207}, {61, 37}}</string>
+ <string key="NSFrame">{{233, 221}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="562258320"/>
@@ -142,10 +143,102 @@
<reference key="IBUIFontDescription" ref="974072441"/>
<reference key="IBUIFont" ref="611341610"/>
</object>
+ <object class="IBUIButton" id="738272855">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{26, 176}, {61, 37}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="619180579"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">MC</string>
+ <reference key="IBUIHighlightedTitleColor" ref="502110293"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="928471838"/>
+ <reference key="IBUIFontDescription" ref="974072441"/>
+ <reference key="IBUIFont" ref="611341610"/>
+ </object>
+ <object class="IBUIButton" id="619180579">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{95, 176}, {61, 37}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="665733298"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">M+</string>
+ <reference key="IBUIHighlightedTitleColor" ref="502110293"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="928471838"/>
+ <reference key="IBUIFontDescription" ref="974072441"/>
+ <reference key="IBUIFont" ref="611341610"/>
+ </object>
+ <object class="IBUIButton" id="665733298">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{164, 176}, {61, 37}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="115560253"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">M-</string>
+ <reference key="IBUIHighlightedTitleColor" ref="502110293"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="928471838"/>
+ <reference key="IBUIFontDescription" ref="974072441"/>
+ <reference key="IBUIFont" ref="611341610"/>
+ </object>
+ <object class="IBUIButton" id="115560253">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{233, 176}, {61, 37}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="603181903"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">MR</string>
+ <reference key="IBUIHighlightedTitleColor" ref="502110293"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="928471838"/>
+ <reference key="IBUIFontDescription" ref="974072441"/>
+ <reference key="IBUIFont" ref="611341610"/>
+ </object>
<object class="IBUIButton" id="562258320">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{26, 252}, {61, 37}}</string>
+ <string key="NSFrame">{{26, 266}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="55032034"/>
@@ -168,7 +261,7 @@
<object class="IBUIButton" id="55032034">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{95, 252}, {61, 37}}</string>
+ <string key="NSFrame">{{95, 266}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="62326982"/>
@@ -191,7 +284,7 @@
<object class="IBUIButton" id="62326982">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{164, 252}, {61, 37}}</string>
+ <string key="NSFrame">{{164, 266}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1070943609"/>
@@ -214,7 +307,7 @@
<object class="IBUIButton" id="1070943609">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{233, 252}, {61, 37}}</string>
+ <string key="NSFrame">{{233, 266}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="429287804"/>
@@ -237,7 +330,7 @@
<object class="IBUIButton" id="429287804">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{26, 297}, {61, 37}}</string>
+ <string key="NSFrame">{{26, 311}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="517391933"/>
@@ -260,7 +353,7 @@
<object class="IBUIButton" id="517391933">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{95, 297}, {61, 37}}</string>
+ <string key="NSFrame">{{95, 311}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="967611906"/>
@@ -283,7 +376,7 @@
<object class="IBUIButton" id="967611906">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{164, 297}, {61, 37}}</string>
+ <string key="NSFrame">{{164, 311}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="58485105"/>
@@ -306,7 +399,7 @@
<object class="IBUIButton" id="58485105">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{233, 297}, {61, 37}}</string>
+ <string key="NSFrame">{{233, 311}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="462216477"/>
@@ -329,7 +422,7 @@
<object class="IBUIButton" id="462216477">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{26, 342}, {61, 37}}</string>
+ <string key="NSFrame">{{26, 356}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="466687791"/>
@@ -352,7 +445,7 @@
<object class="IBUIButton" id="466687791">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{95, 342}, {61, 37}}</string>
+ <string key="NSFrame">{{95, 356}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1056076970"/>
@@ -375,7 +468,7 @@
<object class="IBUIButton" id="1056076970">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{164, 342}, {61, 37}}</string>
+ <string key="NSFrame">{{164, 356}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="376318214"/>
@@ -398,7 +491,7 @@
<object class="IBUIButton" id="376318214">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{26, 387}, {130, 37}}</string>
+ <string key="NSFrame">{{26, 401}, {130, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="10465886"/>
@@ -421,7 +514,7 @@
<object class="IBUIButton" id="10465886">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{164, 387}, {61, 37}}</string>
+ <string key="NSFrame">{{164, 401}, {61, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="751305602"/>
@@ -444,9 +537,10 @@
<object class="IBUIButton" id="751305602">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{233, 342}, {61, 82}}</string>
+ <string key="NSFrame">{{233, 356}, {61, 82}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@@ -463,66 +557,13 @@
<reference key="IBUIFontDescription" ref="974072441"/>
<reference key="IBUIFont" ref="611341610"/>
</object>
- <object class="IBUILabel" id="517737740">
- <reference key="NSNextResponder" ref="774585933"/>
- <int key="NSvFlags">292</int>
- <string key="NSFrame">{{26, 101}, {268, 21}}</string>
- <reference key="NSSuperview" ref="774585933"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="24977012"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClipsSubviews">YES</bool>
- <int key="IBUIContentMode">7</int>
- <bool key="IBUIUserInteractionEnabled">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <string key="IBUIText">Label</string>
- <object class="NSColor" key="IBUITextColor" id="293915228">
- <int key="NSColorSpace">1</int>
- <bytes key="NSRGB">MCAwIDAAA</bytes>
- </object>
- <nil key="IBUIHighlightedColor"/>
- <int key="IBUIBaselineAdjustment">0</int>
- <float key="IBUIMinimumFontSize">10</float>
- <int key="IBUITextAlignment">2</int>
- <object class="IBUIFontDescription" key="IBUIFontDescription" id="518289137">
- <int key="type">1</int>
- <double key="pointSize">24</double>
- </object>
- <object class="NSFont" key="IBUIFont" id="602478214">
- <string key="NSName">Helvetica</string>
- <double key="NSSize">24</double>
- <int key="NSfFlags">16</int>
- </object>
- </object>
- <object class="IBUILabel" id="24977012">
- <reference key="NSNextResponder" ref="774585933"/>
- <int key="NSvFlags">292</int>
- <string key="NSFrame">{{26, 158}, {268, 21}}</string>
- <reference key="NSSuperview" ref="774585933"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="603181903"/>
- <string key="NSReuseIdentifierKey">_NS:9</string>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClipsSubviews">YES</bool>
- <int key="IBUIContentMode">7</int>
- <bool key="IBUIUserInteractionEnabled">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <string key="IBUIText">Label</string>
- <reference key="IBUITextColor" ref="293915228"/>
- <nil key="IBUIHighlightedColor"/>
- <int key="IBUIBaselineAdjustment">0</int>
- <float key="IBUIMinimumFontSize">10</float>
- <reference key="IBUIFontDescription" ref="518289137"/>
- <reference key="IBUIFont" ref="602478214"/>
- </object>
<object class="IBUINavigationBar" id="208894022">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">290</int>
<string key="NSFrameSize">{320, 44}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="517737740"/>
+ <reference key="NSNextKeyView" ref="30185756"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<array key="IBUIItems">
@@ -533,6 +574,80 @@
</object>
</array>
</object>
+ <object class="IBUIView" id="30185756">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUILabel" id="517737740">
+ <reference key="NSNextResponder" ref="30185756"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 20}, {268, 21}}</string>
+ <reference key="NSSuperview" ref="30185756"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="24977012"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">Label</string>
+ <object class="NSColor" key="IBUITextColor" id="293915228">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">0</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">2</int>
+ <object class="IBUIFontDescription" key="IBUIFontDescription" id="797447553">
+ <string key="name">Courier</string>
+ <string key="family">Courier</string>
+ <int key="traits">0</int>
+ <double key="pointSize">24</double>
+ </object>
+ <object class="NSFont" key="IBUIFont" id="45165981">
+ <string key="NSName">Courier</string>
+ <double key="NSSize">24</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ <object class="IBUILabel" id="24977012">
+ <reference key="NSNextResponder" ref="30185756"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 70}, {268, 21}}</string>
+ <reference key="NSSuperview" ref="30185756"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="738272855"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">Label</string>
+ <reference key="IBUITextColor" ref="293915228"/>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">0</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <reference key="IBUIFontDescription" ref="797447553"/>
+ <reference key="IBUIFont" ref="45165981"/>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 44}, {320, 111}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="517737740"/>
+ <string key="NSReuseIdentifierKey">_NS:10</string>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace" id="427246773">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
</array>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<reference key="NSSuperview"/>
@@ -541,9 +656,7 @@
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC43NQA</bytes>
- <object class="NSColorSpace" key="NSCustomColorSpace">
- <int key="NSID">2</int>
- </object>
+ <reference key="NSCustomColorSpace" ref="427246773"/>
</object>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
@@ -732,12 +845,48 @@
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">togglePositiveNegative:</string>
- <reference key="source" ref="824147081"/>
+ <reference key="source" ref="404022130"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int>
</object>
<int key="connectionID">74</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">memoryClear:</string>
+ <reference key="source" ref="738272855"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">83</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">memoryPlus:</string>
+ <reference key="source" ref="619180579"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">84</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">memoryMinus:</string>
+ <reference key="source" ref="665733298"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">85</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">memoryRecall:</string>
+ <reference key="source" ref="115560253"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">86</int>
+ </object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -780,9 +929,12 @@
<reference ref="10465886"/>
<reference ref="751305602"/>
<reference ref="208894022"/>
- <reference ref="517737740"/>
- <reference ref="24977012"/>
- <reference ref="824147081"/>
+ <reference ref="404022130"/>
+ <reference ref="738272855"/>
+ <reference ref="619180579"/>
+ <reference ref="665733298"/>
+ <reference ref="115560253"/>
+ <reference ref="30185756"/>
</array>
<reference key="parent" ref="0"/>
</object>
@@ -872,16 +1024,6 @@
<reference key="parent" ref="774585933"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">43</int>
- <reference key="object" ref="517737740"/>
- <reference key="parent" ref="774585933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">68</int>
- <reference key="object" ref="24977012"/>
- <reference key="parent" ref="774585933"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">70</int>
<reference key="object" ref="208894022"/>
<array class="NSMutableArray" key="children">
@@ -896,9 +1038,48 @@
</object>
<object class="IBObjectRecord">
<int key="objectID">72</int>
- <reference key="object" ref="824147081"/>
+ <reference key="object" ref="404022130"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">75</int>
+ <reference key="object" ref="738272855"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">76</int>
+ <reference key="object" ref="619180579"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">77</int>
+ <reference key="object" ref="665733298"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">78</int>
+ <reference key="object" ref="115560253"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">87</int>
+ <reference key="object" ref="30185756"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="24977012"/>
+ <reference ref="517737740"/>
+ </array>
<reference key="parent" ref="774585933"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">43</int>
+ <reference key="object" ref="517737740"/>
+ <reference key="parent" ref="30185756"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">68</int>
+ <reference key="object" ref="24977012"/>
+ <reference key="parent" ref="30185756"/>
+ </object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -929,12 +1110,17 @@
<string key="70.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="71.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="72.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="75.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="76.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="77.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="78.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="87.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
- <int key="maxID">74</int>
+ <int key="maxID">87</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -945,6 +1131,10 @@
<string key="appendText:">id</string>
<string key="clear:">id</string>
<string key="doCalculation:">id</string>
+ <string key="memoryClear:">id</string>
+ <string key="memoryMinus:">id</string>
+ <string key="memoryPlus:">id</string>
+ <string key="memoryRecall:">id</string>
<string key="setOperator:">id</string>
<string key="togglePositiveNegative:">id</string>
</dictionary>
@@ -961,6 +1151,22 @@
<string key="name">doCalculation:</string>
<string key="candidateClassName">id</string>
</object>
+ <object class="IBActionInfo" key="memoryClear:">
+ <string key="name">memoryClear:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="memoryMinus:">
+ <string key="name">memoryMinus:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="memoryPlus:">
+ <string key="name">memoryPlus:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="memoryRecall:">
+ <string key="name">memoryRecall:</string>
+ <string key="candidateClassName">id</string>
+ </object>
<object class="IBActionInfo" key="setOperator:">
<string key="name">setOperator:</string>
<string key="candidateClassName">id</string>

0 comments on commit 5d4a9fd

Please sign in to comment.