iPhoneSDK
testbuttonAppDelegate.h
//
// testbuttonAppDelegate.h
// testbutton
//
// Created by Kyungmin Cho on 08. 09. 30.
// Copyright __MyCompanyName__ 2008. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface testbuttonAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
IBOutlet UITextField *text1;
IBOutlet UIButton *button1;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
- (IBAction) OnButtonClick:(id)sender;
@end
testbuttonAppDelegate.m
//
// testbuttonAppDelegate.m
// testbutton
//
// Created by Kyungmin Cho on 08. 09. 30.
// Copyright __MyCompanyName__ 2008. All rights reserved.
//
#import "testbuttonAppDelegate.h"
@implementation testbuttonAppDelegate
@synthesize window;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after application launch
[window makeKeyAndVisible];
}
- (void)dealloc {
[window release];
[super dealloc];
}
- (IBAction) OnButtonClick: (id) sender
{
[text1 setText: @"click!"];
}
@end
'KB > iphone/mac' 카테고리의 다른 글
[iPhoneSDK] MyViewController 추가하기 (0) | 2008.10.07 |
---|---|
[iPhone SDK] ViewController 관련.. (0) | 2008.10.02 |
cocoa basic #1 (0) | 2008.09.30 |
Obj-C 간단한 C++ 비교 사용 법 (0) | 2008.09.30 |
cocoa å (0) | 2008.09.30 |