Results 1 to 2 of 2
  1. #1

    Member Since
    Aug 01, 2008
    Question Need help with advanced Objective-C and NSComboBox
    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"

    #import "Length.h"
    @implementation Length
    @synthesize I2M;
    - (float) inchesToMeters {
        return (self.I2M * 2.54) * 0.01;

  2. #2

    Member Since
    Aug 01, 2008
    bump, anyone?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Objective-C help
    By bikka in forum OS X - Development and Darwin
    Replies: 22
    Last Post: 05-27-2014, 03:56 PM
  2. Need help in objective C
    By prateek.chaubey in forum iOS Development
    Replies: 3
    Last Post: 09-23-2011, 10:12 PM
  3. Objective-C
    By eddielee in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 02-02-2011, 01:27 PM
  4. Is Objective For me?
    By Estanislao in forum OS X - Apps and Games
    Replies: 1
    Last Post: 05-26-2009, 05:13 AM
  5. Objective-C
    By AstralZenith in forum OS X - Development and Darwin
    Replies: 13
    Last Post: 03-09-2003, 11:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts