Basic app reworked in Xcode

Discussion in 'Mac Programming' started by NeuralControl, Mar 2, 2010.

  1. NeuralControl macrumors 6502a

    Dec 3, 2009
    I work in a behavioral neuroscience laboratory as an undergrad research assistant. The PI programs applications in Basic. He has taught one of the graduate students the fundamentals of Basic so that he can design programs for his own research. I spent some time with the grad student going over his program and trying to understand the fundamentals of it.

    I would really like to slowly develop my own version of one of the programs used in the laboratory. My skills in programming are very limited. I started working through some tutorials over winter break, but this semester has been extremely difficult and time consuming. However, I would like to continue learning how to program in Xcode, regardless of how slow my progress is.

    My question is, how would I go about developing an application with features that I have never read about in tutorials? I would need to learn how to add a timer, link the arrow keys with particular "areas", and have the application store all the data for each subject until the researcher was ready to analyze the data.

    The application is used to measure of the subject's behavior in a particular paradigm. The paradigm consists of a large rectangle that is divided into a "left", "right", and "center" area. The experimenter is the individual who determines what area the subject is in. I envision the arrow keys as the means of telling the application where the subject is (left arrow for left, right for right, and down for center). The GUI does not need to be complicated or attractive. I know it will require a few text boxes for inputting the subject number, trial number, and other basic information.
    The purpose of the application is to record whether or not the subject has a preference, and if it does, what side it chooses. Once all the subjects have been tested, the researcher needs to access the saved data and begin doing statistical analysis.

    I realize this is a long post, and I appreciate the help of anyone who is willing to read through it and offer his/her advice. I have no intentions of making any profit off this application. It is merely a proof of concept and to show the PI the extent of my interest in the research. I understand this is a long term goal, and I am merely looking for guidance from those who know more than I do.
  2. NeuralControl thread starter macrumors 6502a

    Dec 3, 2009
    Can anyone offer any tips or starting points?
  3. mysterytramp macrumors 65816


    Jul 17, 2008
    If you install Xcode (it's on your system install disks), there's plenty of example code so you should see most/all of what you think your GUI needs in action. It might not make sense right now, but you can go through the code and see how to make changes.

    You might also want to consider something like SuperCard or Revolution. You should be able to mock up an app in far less time -- you didn't seem to be in any rush, but there's going slow and then there's going slow. Objective-C, with your other demands, might be a burden worth putting off. Or then, maybe it isn't.

  4. NeuralControl thread starter macrumors 6502a

    Dec 3, 2009
    I installed Xcode last May. Over the summer break I worked through a few programs I saw online. I had much more time in between semesters. I'm no expert on Objective-C or Xcode, but I have attempted to work on it. I have the Hillegass book and I will begin to read through it starting tomorrow.

Share This Page