Commit a234e464 by O'Reilly Media, Inc.

Initial commit

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

//
// HelloWorldAppDelegate.h
// HelloWorld
//
// Created by Alasdair Allan on 28/07/2009.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
#import <UIKit/UIKit.h>
@class HelloWorldViewController;
@interface HelloWorldAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
HelloWorldViewController *viewController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet HelloWorldViewController *viewController;
@end
//
// HelloWorldAppDelegate.m
// HelloWorld
//
// Created by Alasdair Allan on 28/07/2009.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
#import "HelloWorldAppDelegate.h"
#import "HelloWorldViewController.h"
@implementation HelloWorldAppDelegate
@synthesize window;
@synthesize viewController;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after app launch
[window addSubview:viewController.view];
[window makeKeyAndVisible];
}
- (void)dealloc {
[viewController release];
[window release];
[super dealloc];
}
@end
//
// HelloWorldViewController.h
// HelloWorld
//
// Created by Alasdair Allan on 28/07/2009.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HelloWorldViewController : UIViewController {
UIButton *button;
UILabel *label;
}
@property (nonatomic, retain) IBOutlet UILabel *label;
-(IBAction)sayHello:(id) sender;
@end
//
// HelloWorldViewController.m
// HelloWorld
//
// Created by Alasdair Allan on 28/07/2009.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
#import "HelloWorldViewController.h"
@implementation HelloWorldViewController
@synthesize label;
-(IBAction) sayHello:(id) sender {
label.text = @"Hello World";
}
- (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.
}
- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)dealloc {
[label release];
[button release];
[super dealloc];
}
@end
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>uk.co.babilim.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
</dict>
</plist>
// !$*UTF8*$!
{
0052E1971029DC190099B42D /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 28D7ACF70DDB3853001CB0EB /* HelloWorldViewController.m */;
name = "HelloWorldViewController.m: 18";
rLen = 0;
rLoc = 326;
rType = 0;
vrLen = 517;
vrLoc = 0;
};
0052E1981029DC190099B42D /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 1D3623240D0F684500981E51 /* HelloWorldAppDelegate.h */;
name = "HelloWorldAppDelegate.h: 16";
rLen = 0;
rLoc = 354;
rType = 0;
vrLen = 521;
vrLoc = 0;
};
0052E19B1029DC190099B42D /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 28D7ACF70DDB3853001CB0EB /* HelloWorldViewController.m */;
name = "HelloWorldViewController.m: 18";
rLen = 0;
rLoc = 326;
rType = 0;
vrLen = 630;
vrLoc = 0;
};
0052E1A61029E77D0099B42D /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 1D3623240D0F684500981E51 /* HelloWorldAppDelegate.h */;
name = "HelloWorldAppDelegate.h: 16";
rLen = 0;
rLoc = 354;
rType = 0;
vrLen = 502;
vrLoc = 0;
};
0052E1A71029E77D0099B42D /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 1D3623250D0F684500981E51 /* HelloWorldAppDelegate.m */;
name = "HelloWorldAppDelegate.m: 22";
rLen = 17;
rLoc = 514;
rType = 0;
vrLen = 478;
vrLoc = 153;
};
0052E1A81029E77D0099B42D /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 28D7ACF60DDB3853001CB0EB /* HelloWorldViewController.h */;
name = "HelloWorldViewController.h: 14";