• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Update UITextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Update UITextField
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: RE: Printing/reports?
  • Next by Date: Re: Update UITextField
  • Previous by thread: Re: core data, opening a previously saved xml file... bug/glitch/unexpected behavior
  • Next by thread: Re: Update UITextField
  • Index(es):
    • Date
    • Thread