|Feb 11, 2013, 10:54 PM||#1|
Creating Object From String
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
NSString *which = "L1"; //Label 1 NSTextField *label = (NSTextField *)NSClassFromString(which)]);
|Thread Tools||Search this Thread|
All times are GMT -5. The time now is 04:50 PM.