iPhone SDK/General Xcode question.

Posted by user354779 on Stack Overflow See other posts from Stack Overflow or by user354779
Published on 2010-06-12T18:04:40Z Indexed on 2010/06/12 18:12 UTC
Read the original article Hit count: 326

Filed under:
|
|
|

In the iPhone SDK, in my .n, I can say:

-(IBOutlet) UITextField *MyNameIs; -(IBOutlet) UILabel *DisplayMyNameIsHere;

}

-(IBAction)PressButtonToDisplayYourName;

Then in my .m, I'll do:

-(IBAction)PressButtonToDisplayYourName { DisplayMyNameIsHere = MyNameIs.text; }

But now how would I translate that to making a Mac application. If I wanted to display someones name from a textfield in a label? I have been trying to figure this out, but the ".text" extension only works in the iPhone SDK, not the Mac SDK. Someone please help! Thanks!

© Stack Overflow or respective owner

Related posts about uitextfield

Related posts about uilabel