|
|
#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 Code:
NSString *which = "L1"; //Label 1 NSTextField *label = (NSTextField *)NSClassFromString(which)]); Thank You! |
|
|
|
0
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 02:55 AM.







Threaded Mode