I am new to Obj-C and as my first project I decided to make a Mac version of a program I had made before in C#
Basically the program is a counter or score keeper or whatever you want to call it!
There are 9 + and - buttons each pair connected to a label
So instead of having 18 Methods I made 2 which work dynamically
Now I am trying to do the same thing in Obj-C
Here is my code
I get a Expected identifier error, I do not know really what to do!
Thank You!
Basically the program is a counter or score keeper or whatever you want to call it!
There are 9 + and - buttons each pair connected to a label
So instead of having 18 Methods I made 2 which work dynamically
Now I am trying to do the same thing in Obj-C
Here is my code
Code:
NSString *which = "L1"; //Label 1
NSTextField *label = (NSTextField *)NSClassFromString(which)]);
I get a Expected identifier error, I do not know really what to do!
Thank You!