Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleaning up crufty stuff in iOS Example

  • Loading branch information...
commit 90ff69438eed173765a657d8bfa6cc4d0d21c68d 1 parent 7fba41f
@johnboiles johnboiles authored
Showing with 15 additions and 102 deletions.
  1. +1 −1  Examples/MyTestable-iOS/MyTestable/MyTestableAppDelegate.h
  2. +3 −3 Examples/MyTestable-iOS/MyTestable/MyTestableAppDelegate.m
  3. +1 −1  Examples/MyTestable-iOS/MyTestable/iPad/MyTestableAppDelegate_iPad.h
  4. +1 −6 Examples/MyTestable-iOS/MyTestable/iPad/MyTestableAppDelegate_iPad.m
  5. +1 −1  Examples/MyTestable-iOS/MyTestable/iPad/MyTestableViewController_iPad.h
  6. +1 −39 Examples/MyTestable-iOS/MyTestable/iPad/MyTestableViewController_iPad.m
  7. +1 −1  Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableAppDelegate_iPhone.h
  8. +1 −6 Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableAppDelegate_iPhone.m
  9. +1 −1  Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableViewController_iPhone.h
  10. +1 −39 Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableViewController_iPhone.m
  11. +1 −2  Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableViewController_iPhone.xib
  12. +1 −1  Examples/MyTestable-iOS/MyTestable/main.m
  13. BIN  .../MyTestable-iOS/TestImages/MyNewTestableViewControllerViewTest-testMyNewTestableViewController-0-UIView.png
  14. BIN  Examples/MyTestable-iOS/TestImages/MyNewViewControllerTest-testMyNewViewControllerView-0-UIView.png
  15. BIN  Examples/MyTestable-iOS/TestImages/MyViewTest-testIPhoneViewController-0-UIView.png
  16. +1 −1  Examples/MyTestable-iOS/Tests/MyViewTest.m
View
2  Examples/MyTestable-iOS/MyTestable/MyTestableAppDelegate.h
@@ -3,7 +3,7 @@
// MyTestable
//
// Created by Gabriel Handford on 7/16/11.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
+// Copyright 2011. All rights reserved.
//
#import <UIKit/UIKit.h>
View
6 Examples/MyTestable-iOS/MyTestable/MyTestableAppDelegate.m
@@ -3,7 +3,7 @@
// MyTestable
//
// Created by Gabriel Handford on 7/16/11.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
+// Copyright 2011. All rights reserved.
//
#import "MyTestableAppDelegate.h"
@@ -17,7 +17,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
// Override point for customization after application launch.
[self.window makeKeyAndVisible];
- return YES;
+ return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
@@ -62,7 +62,7 @@ - (void)applicationWillTerminate:(UIApplication *)application
- (void)dealloc
{
[_window release];
- [super dealloc];
+ [super dealloc];
}
@end
View
2  Examples/MyTestable-iOS/MyTestable/iPad/MyTestableAppDelegate_iPad.h
@@ -3,7 +3,7 @@
// MyTestable
//
// Created by Gabriel Handford on 7/16/11.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
+// Copyright 2011. All rights reserved.
//
#import <UIKit/UIKit.h>
View
7 Examples/MyTestable-iOS/MyTestable/iPad/MyTestableAppDelegate_iPad.m
@@ -3,16 +3,11 @@
// MyTestable
//
// Created by Gabriel Handford on 7/16/11.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
+// Copyright 2011. All rights reserved.
//
#import "MyTestableAppDelegate_iPad.h"
@implementation MyTestableAppDelegate_iPad
-- (void)dealloc
-{
- [super dealloc];
-}
-
@end
View
2  Examples/MyTestable-iOS/MyTestable/iPad/MyTestableViewController_iPad.h
@@ -3,7 +3,7 @@
// MyTestable
//
// Created by John Boiles on 10/26/11.
-// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2011. All rights reserved.
//
#import <UIKit/UIKit.h>
View
40 Examples/MyTestable-iOS/MyTestable/iPad/MyTestableViewController_iPad.m
@@ -3,49 +3,11 @@
// MyTestable
//
// Created by John Boiles on 10/26/11.
-// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2011. All rights reserved.
//
#import "MyTestableViewController_iPad.h"
@implementation MyTestableViewController_iPad
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
-{
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- if (self) {
- // Custom initialization
- }
- return self;
-}
-
-- (void)didReceiveMemoryWarning
-{
- // Releases the view if it doesn't have a superview.
- [super didReceiveMemoryWarning];
-
- // Release any cached data, images, etc that aren't in use.
-}
-
-#pragma mark - View lifecycle
-
-- (void)viewDidLoad
-{
- [super viewDidLoad];
- // Do any additional setup after loading the view from its nib.
-}
-
-- (void)viewDidUnload
-{
- [super viewDidUnload];
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- // Return YES for supported orientations
- return YES;
-}
-
@end
View
2  Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableAppDelegate_iPhone.h
@@ -3,7 +3,7 @@
// MyTestable
//
// Created by Gabriel Handford on 7/16/11.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
+// Copyright 2011. All rights reserved.
//
#import <UIKit/UIKit.h>
View
7 Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableAppDelegate_iPhone.m
@@ -3,16 +3,11 @@
// MyTestable
//
// Created by Gabriel Handford on 7/16/11.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
+// Copyright 2011. All rights reserved.
//
#import "MyTestableAppDelegate_iPhone.h"
@implementation MyTestableAppDelegate_iPhone
-- (void)dealloc
-{
- [super dealloc];
-}
-
@end
View
2  Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableViewController_iPhone.h
@@ -3,7 +3,7 @@
// MyTestable
//
// Created by John Boiles on 10/26/11.
-// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2011. All rights reserved.
//
#import <UIKit/UIKit.h>
View
40 Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableViewController_iPhone.m
@@ -3,49 +3,11 @@
// MyTestable
//
// Created by John Boiles on 10/26/11.
-// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2011. All rights reserved.
//
#import "MyTestableViewController_iPhone.h"
@implementation MyTestableViewController_iPhone
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
-{
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- if (self) {
- // Custom initialization
- }
- return self;
-}
-
-- (void)didReceiveMemoryWarning
-{
- // Releases the view if it doesn't have a superview.
- [super didReceiveMemoryWarning];
-
- // Release any cached data, images, etc that aren't in use.
-}
-
-#pragma mark - View lifecycle
-
-- (void)viewDidLoad
-{
- [super viewDidLoad];
- // Do any additional setup after loading the view from its nib.
-}
-
-- (void)viewDidUnload
-{
- [super viewDidUnload];
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- // Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
-}
-
@end
View
3  Examples/MyTestable-iOS/MyTestable/iPhone/MyTestableViewController_iPhone.xib
@@ -74,7 +74,6 @@
<string key="NSFrame">{{10, 161}, {310, 137}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:328</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
@@ -179,7 +178,7 @@ X3wgIC9fX3x8X198ICAKL19fX19fLyAgICAgIFwvICAgICAgICAgICBcLw</string>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
- <int key="maxID">10</int>
+ <int key="maxID">15</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
View
2  Examples/MyTestable-iOS/MyTestable/main.m
@@ -3,7 +3,7 @@
// MyTestable
//
// Created by Gabriel Handford on 7/16/11.
-// Copyright 2011 __MyCompanyName__. All rights reserved.
+// Copyright 2011. All rights reserved.
//
#import <UIKit/UIKit.h>
View
BIN  ...stImages/MyNewTestableViewControllerViewTest-testMyNewTestableViewController-0-UIView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  ...yTestable-iOS/TestImages/MyNewViewControllerTest-testMyNewViewControllerView-0-UIView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Examples/MyTestable-iOS/TestImages/MyViewTest-testIPhoneViewController-0-UIView.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2  Examples/MyTestable-iOS/Tests/MyViewTest.m
@@ -3,7 +3,7 @@
// MyTestable
//
// Created by John Boiles on 10/26/11.
-// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
+// Copyright (c) 2011. All rights reserved.
//
#import <GHUnitIOS/GHUnit.h>
Please sign in to comment.
Something went wrong with that request. Please try again.