• R/O
  • SSH
  • HTTPS

iphone-jsp: 提交


Commit MetaInfo

修訂2 (tree)
時間2009-10-30 23:50:43
作者(del#40607)

Log Message

(empty log message)

Change Summary

差異

--- trunk/example/sample1/main.m (nonexistent)
+++ trunk/example/sample1/main.m (revision 2)
@@ -0,0 +1,17 @@
1+//
2+// main.m
3+// sample1
4+//
5+// Created by 氏原 達裕 on 09/10/30.
6+// Copyright __MyCompanyName__ 2009. All rights reserved.
7+//
8+
9+#import <UIKit/UIKit.h>
10+
11+int main(int argc, char *argv[]) {
12+
13+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
14+ int retVal = UIApplicationMain(argc, argv, nil, nil);
15+ [pool release];
16+ return retVal;
17+}
--- trunk/example/sample1/sample1-Info.plist (nonexistent)
+++ trunk/example/sample1/sample1-Info.plist (revision 2)
@@ -0,0 +1,30 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>CFBundleDevelopmentRegion</key>
6+ <string>English</string>
7+ <key>CFBundleDisplayName</key>
8+ <string>${PRODUCT_NAME}</string>
9+ <key>CFBundleExecutable</key>
10+ <string>${EXECUTABLE_NAME}</string>
11+ <key>CFBundleIconFile</key>
12+ <string></string>
13+ <key>CFBundleIdentifier</key>
14+ <string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
15+ <key>CFBundleInfoDictionaryVersion</key>
16+ <string>6.0</string>
17+ <key>CFBundleName</key>
18+ <string>${PRODUCT_NAME}</string>
19+ <key>CFBundlePackageType</key>
20+ <string>APPL</string>
21+ <key>CFBundleSignature</key>
22+ <string>????</string>
23+ <key>CFBundleVersion</key>
24+ <string>1.0</string>
25+ <key>LSRequiresIPhoneOS</key>
26+ <true/>
27+ <key>NSMainNibFile</key>
28+ <string>MainWindow</string>
29+</dict>
30+</plist>
--- trunk/example/sample1/Classes/sample1AppDelegate.h (nonexistent)
+++ trunk/example/sample1/Classes/sample1AppDelegate.h (revision 2)
@@ -0,0 +1,22 @@
1+//
2+// sample1AppDelegate.h
3+// sample1
4+//
5+// Created by 氏原 達裕 on 09/10/30.
6+// Copyright __MyCompanyName__ 2009. All rights reserved.
7+//
8+
9+#import <UIKit/UIKit.h>
10+
11+@class sample1ViewController;
12+
13+@interface sample1AppDelegate : NSObject <UIApplicationDelegate> {
14+ UIWindow *window;
15+ sample1ViewController *viewController;
16+}
17+
18+@property (nonatomic, retain) IBOutlet UIWindow *window;
19+@property (nonatomic, retain) IBOutlet sample1ViewController *viewController;
20+
21+@end
22+
--- trunk/example/sample1/Classes/sample1ViewController.h (nonexistent)
+++ trunk/example/sample1/Classes/sample1ViewController.h (revision 2)
@@ -0,0 +1,16 @@
1+//
2+// sample1ViewController.h
3+// sample1
4+//
5+// Created by 氏原 達裕 on 09/10/30.
6+// Copyright __MyCompanyName__ 2009. All rights reserved.
7+//
8+
9+#import <UIKit/UIKit.h>
10+
11+@interface sample1ViewController : UIViewController {
12+
13+}
14+
15+@end
16+
--- trunk/example/sample1/Classes/sample1AppDelegate.m (nonexistent)
+++ trunk/example/sample1/Classes/sample1AppDelegate.m (revision 2)
@@ -0,0 +1,33 @@
1+//
2+// sample1AppDelegate.m
3+// sample1
4+//
5+// Created by 氏原 達裕 on 09/10/30.
6+// Copyright __MyCompanyName__ 2009. All rights reserved.
7+//
8+
9+#import "sample1AppDelegate.h"
10+#import "sample1ViewController.h"
11+
12+@implementation sample1AppDelegate
13+
14+@synthesize window;
15+@synthesize viewController;
16+
17+
18+- (void)applicationDidFinishLaunching:(UIApplication *)application {
19+
20+ // Override point for customization after app launch
21+ [window addSubview:viewController.view];
22+ [window makeKeyAndVisible];
23+}
24+
25+
26+- (void)dealloc {
27+ [viewController release];
28+ [window release];
29+ [super dealloc];
30+}
31+
32+
33+@end
--- trunk/example/sample1/Classes/sample1ViewController.m (nonexistent)
+++ trunk/example/sample1/Classes/sample1ViewController.m (revision 2)
@@ -0,0 +1,65 @@
1+//
2+// sample1ViewController.m
3+// sample1
4+//
5+// Created by 氏原 達裕 on 09/10/30.
6+// Copyright __MyCompanyName__ 2009. All rights reserved.
7+//
8+
9+#import "sample1ViewController.h"
10+
11+@implementation sample1ViewController
12+
13+
14+
15+/*
16+// The designated initializer. Override to perform setup that is required before the view is loaded.
17+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
18+ if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
19+ // Custom initialization
20+ }
21+ return self;
22+}
23+*/
24+
25+/*
26+// Implement loadView to create a view hierarchy programmatically, without using a nib.
27+- (void)loadView {
28+}
29+*/
30+
31+
32+/*
33+// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
34+- (void)viewDidLoad {
35+ [super viewDidLoad];
36+}
37+*/
38+
39+
40+/*
41+// Override to allow orientations other than the default portrait orientation.
42+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
43+ // Return YES for supported orientations
44+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
45+}
46+*/
47+
48+- (void)didReceiveMemoryWarning {
49+ // Releases the view if it doesn't have a superview.
50+ [super didReceiveMemoryWarning];
51+
52+ // Release any cached data, images, etc that aren't in use.
53+}
54+
55+- (void)viewDidUnload {
56+ // Release any retained subviews of the main view.
57+ // e.g. self.myOutlet = nil;
58+}
59+
60+
61+- (void)dealloc {
62+ [super dealloc];
63+}
64+
65+@end
Show on old repository browser