Newbie help needed

Joined
Feb 5, 2011
Messages
1
Reaction score
0
Points
1
Hi All

Im just starting of coding my first app.

Im struggling with one part of it, and i hope you guys can help.

I have some labels in my interface builder, which are blank at the moment.
I want to be able to display certain text when a button is pressed.
Now i can do it with numbers, no problem. But im struggling to find the right
commands to display text.
example :

label 1 label 2

Label 1 will display numbers, depending on which button is pressed,
Label 2 will display text,

I know this is probably very straight forward !! lol

Thanks in advance.

I forgot to add that this will be an OSX app NOT iOS !!
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
If you are talking about NSTextField, then look at the setStringValue: method.

Look at the documentation for the classes you are using. I often just choose Google by entering something like this; site:developer.apple.com nsbutton

It is good that you mentioned OS X. I almost missed it though since it came after your Thanks.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top