Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jim51538

macrumors newbie
Original poster
Nov 13, 2012
2
0
Hello,

I have just one text field on MainMenu.xib. That's all I have. I want to set its text to "Hello, world!" How do I do it programatically? I've spent some years with other development platforms including VB.Net. For now, Xcode is quite difficult to use. I'm using Xcode 4.5.1.

The VB.Net code equivalent to what I want to do is the following.

Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
	TextBox1.Text="Hello, world!"
End Sub

Thank you for your help for such a very basic question.

Jim
 
Last edited:

PatrickCocoa

macrumors 6502a
Dec 2, 2008
751
149
Buckle up, it's going to be a bumpy ride . . .

The Xcode / Cocoa / OS X / iOS / Objective - C universe is much different from the Visual Studio / Windows / C++ VB.net universe you're used to.

Much of what is true in your old universe is not true in the new.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.