[FIX] Macintosh 2.8 Browser plugin sqMacNSPlugin.c

John M McIntosh johnmci at smalltalkconsulting.com
Thu Aug 24 23:19:22 UTC 2000


If you have multiple macintosh volumes, and have a browser not on the root
volume then Squeak can't find the SqueakPlugin.image.

In the routine

int PathToPreferenceDir(char *pathName, long pathNameMax, long volumeID,
long directoryID) {

change

    while (true) {
        thisName[0] = 0;
        pb.hFileInfo.ioFDirIndex = -1; /* map ioDirID -> name */
        pb.hFileInfo.ioVRefNum = 0;
        pb.hFileInfo.ioDirID = nextDirRefNum;

to 
    while (true) {
        thisName[0] = 0;
        pb.hFileInfo.ioFDirIndex = -1; /* map ioDirID -> name */
        pb.hFileInfo.ioVRefNum = volumeID;
        pb.hFileInfo.ioDirID = nextDirRefNum;


We're attempting to post the browser plugin for the macintosh, but it's
failing Bruce's Smoke test, in fact it doesn't even launch for him. Perhaps
the fix above will fix it. Stay tuned.

--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7  E94A EE69 2D21 46FC 3BE6
===========================================================================





More information about the Squeak-dev mailing list