From: Bernard D. <bde...@or...> - 2015-09-25 20:35:31
|
Hi Lars, Le 25 sept. 2015 à 22:06, Lars Hellström <Lar...@re...> a écrit : > > One problem I encountered was however with TclAE rather than Alphatk. My > command-line Wish is 64-bit, so I found I had to recompile TclAE; luckily > the most recent revision on SF claims to have 64-bit support, and indeed it > builds and reports no failing tests. On the other hand, it throws an error > when I try > > % tclAE::coerceData utxt /Users/lars/Projekt/PlanetMath/Matrix.pdf alis > Error: Couldn't coerce |/Users/lars/Projekt/PlanetMath/Matrix.pdf| from > 'utxt' to 'alis': OSErr -1700 > > (-1700 seems to basically mean "couldn't coerce data".) > > Doing the same call in AlphaX (which is 32-bit) works, however. Any thoughts > on what is going on? (I suspect 64-bit architecture is also the way of the > future for AlphaCocoa.) I can only answer this last one. In AlphaX, I have installed coercion handlers between 'alis' and ‘utxt’ types, which is why your instruction succeeded. static pascal OSErr Alpha_UtxtToAlisCoerceProc(const AEDesc *fromDesc, DescType toType, long handlerRefCon, AEDesc *toDesc); static pascal OSErr Alpha_AlisToUtxtCoerceProc(const AEDesc *fromDesc, DescType toType, long handlerRefCon, AEDesc *toDesc); Bernard |