My two questions (details below):
1) What is the current working status of GetChar?
2) What changes are necessary to convert an OS 9 script to work in OS X?
Background:
I have been using the Mac OS 9 version of PTB and Matlab 5.2.1 running in Classic (on G4
and G5 PPC iMacs). This has worked successfully so far for a series of experiments I've
done.
However, I'm probably about to have to run the next experiment on Intel Mac Minis, which
won't be able to run Classic (but WILL be able to boot Windows).
So I need to convert my scripts from OS 9 PTB to work in OS X PTB, or convert them to
work in Windows, or give up and start over from scratch in RealBasic or something.
Details on Question 1:
My scripts rely heavily on GetChar as the experiments call for participants to memorize
words and then later type in each entire word, using the keyboard, in response to a cue.
Early on, I tried writing something that used kbcheck to do this, and while kbcheck
seemed to work alright for participant responses of a single keypress, it proved entirely
inadequate for recording an entire word that was typed in.
I know that as of at least a year ago there were major problems with getting GetChar
working, but I'm not sure what the current status is.
Details on Question 2:
Is there a guide/tutorial/example or anything online that demonstrates the major changes
necessary in converting an OS 9 to an OS X script? I thought I remembered seeing
something along those lines once, but can't find it again now. I understand that the OS 9
and X versions of PTB use different methods to display ("draw") stuff on the screen, so I
know that'll all have to be changed at least, and probably other aspects too. At least
seeing a few examples of the same script in OS 9 and OS X would be really helpful.
thanks very much,
Jason Finley
UCLA (soon to be UIUC)
1) What is the current working status of GetChar?
2) What changes are necessary to convert an OS 9 script to work in OS X?
Background:
I have been using the Mac OS 9 version of PTB and Matlab 5.2.1 running in Classic (on G4
and G5 PPC iMacs). This has worked successfully so far for a series of experiments I've
done.
However, I'm probably about to have to run the next experiment on Intel Mac Minis, which
won't be able to run Classic (but WILL be able to boot Windows).
So I need to convert my scripts from OS 9 PTB to work in OS X PTB, or convert them to
work in Windows, or give up and start over from scratch in RealBasic or something.
Details on Question 1:
My scripts rely heavily on GetChar as the experiments call for participants to memorize
words and then later type in each entire word, using the keyboard, in response to a cue.
Early on, I tried writing something that used kbcheck to do this, and while kbcheck
seemed to work alright for participant responses of a single keypress, it proved entirely
inadequate for recording an entire word that was typed in.
I know that as of at least a year ago there were major problems with getting GetChar
working, but I'm not sure what the current status is.
Details on Question 2:
Is there a guide/tutorial/example or anything online that demonstrates the major changes
necessary in converting an OS 9 to an OS X script? I thought I remembered seeing
something along those lines once, but can't find it again now. I understand that the OS 9
and X versions of PTB use different methods to display ("draw") stuff on the screen, so I
know that'll all have to be changed at least, and probably other aspects too. At least
seeing a few examples of the same script in OS 9 and OS X would be really helpful.
thanks very much,
Jason Finley
UCLA (soon to be UIUC)