Hi all, i need your help, i have simple project(cocoa app)
untitled.h:
untitled.m:
How I can get string value, from TextField. I click to the button([mylabel setStringValue"Test"]) and i need get value(my own value, not this static string "Test") from TextField and put in the Label(where "Test" right now)
Thx a lot.
untitled.h:
Code:
#import <Cocoa/Cocoa.h>
@interface untitled : NSObject {
IBOutlet id mylabel;
}
- (IBAction)ButtonClick:(id)sender;
@end
untitled.m:
Code:
#import "untitled.h"
@implementation untitled
- (IBAction)ButtonClick:(id)sender {
[mylabel setStringValue:@"Test"];
}
@end
How I can get string value, from TextField. I click to the button([mylabel setStringValue"Test"]) and i need get value(my own value, not this static string "Test") from TextField and put in the Label(where "Test" right now)
Thx a lot.