Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 13, 2012, 11:55 AM   #1
jim51538
macrumors newbie
 
Join Date: Nov 2012
Very basic Xcode question

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 by jim51538; Nov 13, 2012 at 12:43 PM.
jim51538 is offline   0 Reply With Quote
Old Nov 13, 2012, 01:15 PM   #2
jim51538
Thread Starter
macrumors newbie
 
Join Date: Nov 2012
I got it.
jim51538 is offline   0 Reply With Quote
Old Nov 13, 2012, 02:00 PM   #3
PatrickCocoa
macrumors 6502a
 
Join Date: Dec 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++ VB.net universe you're used to.

Much of what is true in your old universe is not true in the new.
__________________
iMac 21.5", 3.06GHz, 4 GB, 2 TB HD.
iPod Touch 3G.
PatrickCocoa is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Snow Leopard File Vault Question and Basic System Password Question & Time Machine? GordonGekko999 Mac Basics and Help 0 Oct 25, 2013 07:06 AM
Very basic stupid question maryjolemmon Mac Applications and Mac App Store 1 Jun 9, 2013 04:28 PM
Basic C Programming Question - Can anyone help? 007bond Mac Programming 3 Feb 6, 2013 01:15 PM
Very Basic AppleScript Question TheMTtakeover Mac Programming 2 Dec 13, 2012 05:45 AM

Forum Jump

All times are GMT -5. The time now is 12:48 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC