Auto Suggest Text Box

Discussion in 'Mac Programming' started by CHawk, Mar 23, 2008.

  1. macrumors newbie

    Joined:
    Mar 23, 2008
    #1
    Is it possible to create a text box that has a database feeding it, and automatically suggests the possibilities as you type? I assume yes, and if so, how would you begin to go about that?
     
  2. thread starter macrumors newbie

    Joined:
    Mar 23, 2008
    #2
    Does No-one have any idea whatsoever about where to begin researching about auto-suggest text boxes, etc....?????? I know that JavaScript is big on auto suggest, but can this be done through the Cocoa xcode as the program has within the help section of the menu????

    SOMEONE GIVE ME A CLUE PLEASE!!!:)
     
  3. macrumors 6502

    Joined:
    Jun 16, 2004
    #3
    I'm sure its possible, not sure how, but seriously give people more than 1.5 hours (on Easter even) to respond!
     
  4. thread starter macrumors newbie

    Joined:
    Mar 23, 2008
    #4
    Sorry!!! Just trying to get started - you know what it is like!!:D
     
  5. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #5
    NSTextView provides this ability already. Look at the Text Completion section.
     
  6. thread starter macrumors newbie

    Joined:
    Mar 23, 2008
    #6
    Thanks kainjow. I am really new to all this. Can you correct me if I am wrong:

    I am trying to create a form page with text boxes which have a specific range of names to choose from - e.g from a membership list.

    I would like the user to initially create such a membership list from a database, or by entering the data in the same way that you would when you enter into an address book. As I understand it, you may even be able to call upon the Apple Address Book to populate the program list of names?

    Once done, I would like the user to be able to fill out a new form page where they select from the data already inserted. Imagine, if you like, a school registration form, where you assign people to certain classes on certain days, etc.

    I would have to create a set of text boxes, and insert some form of 'complete' function to each text box???

    Also, what would be the way of calling on the database??

    Sorry, I hope that is clear...
     
  7. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #7
    Well I assumed you were using Cocoa but I don't think that is the case. Are you writing a web page?
     
  8. thread starter macrumors newbie

    Joined:
    Mar 23, 2008
    #8
    No - I was starting to do this from my web site, and then I decided that I would prefer to create a program specifically to organise all of the information. Effectively, I am trying to create a timetabling program, but I have lots of students, lots of teachers, etc. to co-ordinate. So, I started to investigate Cocoa and her I am...
     
  9. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #9
    I see. It sounds like you're quite new to Cocoa, so I'd advise you to start from the beginning. Learning to write Mac apps with Cocoa is nothing like writing a web page. There are many things to learn and understand.

    It'd be helpful to take a glance through the Cocoa FAQ. You may also be interested in later using Core Data.

    Good luck!
     
  10. macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #10

Share This Page