Wanting to develop for the iPhone I thought it would be good practice to develop it on the Mac first on 10.4 assuming I could cut and past most of the code. I decided to start simple with a high / low game. However I found several things that don't seem to work.
Here is the code that doesn't work.
[instructions setFont:[NSFont fontWithName"Times" size:14.0]];
[[NSSound soundNamed"click.wav"] play];
[myButton setTitle"Play again?"];
Strangely enough this doesn't work
[instructions setStringValue"Pick of a number between 1 and 10"];
however, this does
instructions.text=@"Pick a number between 1 and 10";
all the good stuff like setIntValue and setStringValue doesn't work. What's going on? Any help would be appreciated.
Thank you
Here is the code that doesn't work.
[instructions setFont:[NSFont fontWithName"Times" size:14.0]];
[[NSSound soundNamed"click.wav"] play];
[myButton setTitle"Play again?"];
Strangely enough this doesn't work
[instructions setStringValue"Pick of a number between 1 and 10"];
however, this does
instructions.text=@"Pick a number between 1 and 10";
all the good stuff like setIntValue and setStringValue doesn't work. What's going on? Any help would be appreciated.
Thank you