While eagerly awaiting the 3.1 SDK, another question: do the various
event types in <Event.h> have fixed object pointer types, from this:
// 3.0 declarations with (void*) object pointers
struct popSelect {
Word controlID;
void * controlP;
Word listID;
void * listP;
Word selection;
Word priorSelection;
} popSelect;
to this:
// example with correctly typed object pointers
struct popSelect {
Word controlID;
ControlPtr controlP; // (void*) ==> ControlPtr
Word listID;
ListPtr listP; // (void*) ==> ListPtr
Word selection;
Word priorSelection;
} popSelect;
I don't remember C much any more, but at least in C++ you need an
explicit type cast to use the pointers highlighted above. Fixing this
for 3.1 wouldn't change anything at the binary level (all required
casting is compile time only) and should not break any existing code.
It would be much appreciated by those of us who try to write readable
and maintainable code.
(Along with all the >other< type errors in the headers... :-)
-slj-