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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com