|
From: <cre...@us...> - 2006-06-24 01:14:09
|
Revision: 1405 Author: creecode Date: 2006-06-23 18:14:06 -0700 (Fri, 23 Jun 2006) ViewCVS: http://svn.sourceforge.net/frontierkernel/?rev=1405&view=rev Log Message: ----------- FSRef-ized Modified Paths: -------------- Frontier/branches/FSRef_Migration/Common/source/cancoon.c Modified: Frontier/branches/FSRef_Migration/Common/source/cancoon.c =================================================================== --- Frontier/branches/FSRef_Migration/Common/source/cancoon.c 2006-06-24 01:06:58 UTC (rev 1404) +++ Frontier/branches/FSRef_Migration/Common/source/cancoon.c 2006-06-24 01:14:06 UTC (rev 1405) @@ -857,15 +857,15 @@ boolean ccloadspecialfile (ptrfilespec fspec, OSType filetype) { #pragma unused (filetype) - /* - 7/28/92 dmb: use new finder2frontscript to set the Frontier.findertofront - global, instead of having Frontier.finder2click always set it to true. also, - handle updates now. + // + // 2006-06-23 creedon: replace fsname macro with getfsfile function; + // + // 2.1b3 dmb: only set finder2front to true if the sender of the 'odoc' event was the Finder + // + // 1992-07-28 dmb: use new finder2frontscript to set the Frontier.findertofront global, instead of having + // Frontier.finder2click always set it to true. also, handle updates now. + // - 2.1b3 dmb: only set finder2front to true if the sender of the 'odoc' event - was the Finder - */ - bigstring bspath; bigstring bs; ptrbyte pbool; @@ -883,15 +883,19 @@ } if (!filespectopath (fspec, bspath)) { + + bigstring bs; - filenotfounderror ((ptrstring) fsname (fspec)); + getfsfile ( fspec, bs ); + filenotfounderror ( bs ); + return (false); } - langdeparsestring (bspath, chclosecurlyquote); /*add needed escape sequences*/ + langdeparsestring (bspath, chclosecurlyquote); // add needed escape sequences - if (getsystemtablescript (idfinder2frontscript, bs)) { /*frontier.findertofront=^0*/ + if (getsystemtablescript (idfinder2frontscript, bs)) { // frontier.findertofront=^0 #ifdef MACVERSION if ((shellevent.what == kHighLevelEvent) && ((**landgetglobals ()).maceventsender == 'MACS')) @@ -905,15 +909,15 @@ langrunstringnoerror (bs, bs); } - if (!getsystemtablescript (idfinder2clickscript, bs)) /*frontier.finder2click ("^0")*/ + if (!getsystemtablescript (idfinder2clickscript, bs)) // frontier.finder2click ("^0") return (false); parsedialogstring (bs, bspath, nil, nil, nil, bs); - shellpartialeventloop (updateMask); /*handle updates first*/ + shellpartialeventloop (updateMask); // handle updates first return (processrunstring (bs)); - } /*ccloadspecialfile*/ + } // ccloadspecialfile boolean ccsavespecialfile (ptrfilespec fs, hdlfilenum fnum, short rnum, boolean flsaveas, boolean flrunnable) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |