Help - Search - Members - Calendar
Full Version: Just started Objective-C and Need a little help.
InsanelyMac Forum > Apple World > Mac Programming and Development
the JiV™
Hi everybody, I am making this app called, "Swiss Army Converter" (First App biggrin.gif) 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 biggrin.gif)

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 biggrin.gif 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?
the JiV™
bump, anyone?
alloutmacstoday
Just find conversion rates for weight. That should work
the JiV™
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
alloutmacstoday
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
the JiV™
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?
alloutmacstoday
okay, you just do this:
NSString *objectValue = [<your iboutlet of nscombobox> objectValueOfSelectedItem]
the JiV™
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?
the JiV™
Ok, I got it, I had to use NSPopUpBox and use tags.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.