New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Need help with advanced Objective-C and NSComboBox


Post Reply New Thread Subscribe

 
Thread Tools
jivhg

 
Member Since: Aug 01, 2008
Posts: 6
jivhg is on a distinguished road

jivhg is offline
Hi everyone, I am making a program that converts just about anything, and I am making the part where it converts length as in, Standard Units and Metric Units.

I made an NSComboBox in Interface builder, I just need a little step by step on what to do from there. Here is how I need it to work:

1. Choose Dropdown from the Window to choose your selection. (Lets say Inches to Meters)

2. Type the amount you want converted in an NSTextField (Editable)

3. Click Convert

I know all the Math you need to do to do this, to turn an inch into a meter you need to Multiply it by 2.54 then multiply the answer by 0.01.

This is what I have for "Length.m"

Code:
#import "Length.h"

@implementation Length

@synthesize I2M;

- (float) inchesToMeters {
    return (self.I2M * 2.54) * 0.01;
}


@end
QUOTE Thanks
jivhg

 
Member Since: Aug 01, 2008
Posts: 6
jivhg is on a distinguished road

jivhg is offline
bump, anyone?
QUOTE Thanks

Post Reply New Thread Subscribe


« Dumb it Down a little for me please! | Creating a full screen, locking application »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 04:05 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?