jivhg Posted August 1, 2008 Share Posted August 1, 2008 Hi everybody, I am making this app called, "Swiss Army Converter" (First App ) and I am going to have it convert Weight, Currency, Distance, and Temperature. I have completed 1.5/5 I am Done With Currency (thanks to apple's tutorial ) And Kinda done with Temperature (based on custom script (im a fast learner)) And I am still weary with my custom script. I have gotten the conversion stuff all righty, it converts flawlessly. But I made Sliders to make it look cool and I want the value of the sliders to make the NSTextField next to it. Here are my Outlets: fahrenheitSlider celsiusSlider celsiusField fahrenheitField So I am asking what code I should put in to make the position of that SliderCell on the Slider to make the value of the float amount in the TextField. Desregard the above, i got it working, but I do need help on making the Help Book, and the Weight Converter as well, anyone know how to make a weight converter for XCode? Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/ Share on other sites More sharing options...
jivhg Posted August 9, 2008 Author Share Posted August 9, 2008 bump, anyone? Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/#findComment-850592 Share on other sites More sharing options...
alloutmacstoday Posted August 9, 2008 Share Posted August 9, 2008 Just find conversion rates for weight. That should work Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/#findComment-850728 Share on other sites More sharing options...
jivhg Posted August 9, 2008 Author Share Posted August 9, 2008 No, I want to do it differently, I want to learn how to generate values depending on an NSComboBox Selection but I cannot do any of that the way I would (which is outlets) because NSComboBox is a dropdown and I want a number for each value in the dropdown so I can make a generated value depending on the selection like. (this isnt real code just to make people understand) if SelectionValue=1 *3 -234 Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/#findComment-850822 Share on other sites More sharing options...
alloutmacstoday Posted August 10, 2008 Share Posted August 10, 2008 oh, why didn't you just say so! Well, it would be too hard for me to explain all of it to you, so just read this: http://developer.apple.com/documentation/C.../Reference.html Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/#findComment-850895 Share on other sites More sharing options...
jivhg Posted August 10, 2008 Author Share Posted August 10, 2008 I have read that before, I am a huge newb so i dont know what any of it means and waht it is asking me. How do I get the object values? Could you please explain? Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/#findComment-851321 Share on other sites More sharing options...
alloutmacstoday Posted August 10, 2008 Share Posted August 10, 2008 okay, you just do this: NSString *objectValue = [<your iboutlet of nscombobox> objectValueOfSelectedItem] Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/#findComment-851545 Share on other sites More sharing options...
jivhg Posted August 15, 2008 Author Share Posted August 15, 2008 Okay, thanks for all your help, but I dont understand how I will do that depending on what object the user picked. And which file should I put that in, the .h or .m file? Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/#findComment-857897 Share on other sites More sharing options...
jivhg Posted September 8, 2008 Author Share Posted September 8, 2008 Ok, I got it, I had to use NSPopUpBox and use tags. Link to comment https://www.insanelymac.com/forum/topic/118811-just-started-objective-c-and-need-a-little-help/#findComment-883432 Share on other sites More sharing options...
Recommended Posts