Update UITextField
Update UITextField
- Subject: Update UITextField
- From: Barry Fawthrop <email@hidden>
- Date: Thu, 02 Apr 2009 12:51:02 -0400
Trying to Update a UITextField from a c function
I have a UITextField on the Window
in controller.h
IBOutlet UITextField *username;
I have a c function getName();
in controller.m Collect linked to NSButton
-(IBAction)Collect:(id)sender {
...
...
getName();
...
}
void getName() {
char *name;
...
...
[username setText: [NSString stringWithFormat: @"%s", name]];
...
}
The setText Fails to compile error 'username' undeclared
How should I set the Value ???
Thanks in advance
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden