Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 13, 2012, 10: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 11:43 AM.
jim51538 is offline   0 Reply With Quote
Old Nov 13, 2012, 12: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, 01: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:26 PM.

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

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