Very basic Xcode question

Discussion in 'Mac Programming' started by jim51538, Nov 13, 2012.

  1. jim51538, Nov 13, 2012
    Last edited: Nov 13, 2012

    jim51538 macrumors newbie

    Nov 13, 2012

    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.

    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.

  2. jim51538 thread starter macrumors newbie

    Nov 13, 2012
  3. PatrickCocoa macrumors 6502a

    Dec 2, 2008
    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++ universe you're used to.

    Much of what is true in your old universe is not true in the new.

Share This Page