Heya, was just wondering how to set a label programmatically in Xcode.
For example, I have a label set as *Placeholder*, but when the app is ran on a machine, I want the label to display the value returned of "sysctl -a | grep machdep.cpu.brand_string" (which outputs something like "
Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz")
Also, using awk (or a similar tool), I would like to cut out the (R), (TM), and " @ 2.00GHz".
Would this be possible?
Thanks for any help!
For example, I have a label set as *Placeholder*, but when the app is ran on a machine, I want the label to display the value returned of "sysctl -a | grep machdep.cpu.brand_string" (which outputs something like "
Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz")
Also, using awk (or a similar tool), I would like to cut out the (R), (TM), and " @ 2.00GHz".
Would this be possible?
Thanks for any help!