home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!sun-barr!ames!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!lambda.msfc.nasa.gov!NewsWatcher
- From: steve.herman%express@freedom.msfc.nasa.gov (Steve Herman)
- Subject: Changing a file's creator?
- Message-ID: <steve.herman-260892161943@128.158.4.199>
- Followup-To: comp.sys.mac.programmer
- Sender: news@lambda.msfc.nasa.gov (Newsmaster)
- Nntp-Posting-Host: hermasj.msfc.nasa.gov
- Organization: BCSS
- Date: Wed, 26 Aug 1992 21:30:09 GMT
- Lines: 25
-
- Is there a way to force the Finder to update the screen with a file's new
- Icon after changing the file's Creator?
-
- When replacing a file, my program uses FSpSetFInfo to change the existing
- file's type and creator to those I want. However, the file's Icon doesn't
- change until I close and re-open the folder which contain's it (or do a Get
- Info).
-
- Initially I tried deleting the original file and then using FSpCreate and
- this gives me the correct icon but it moves the file to a different
- location within the window. Setting the fInfo.fdLocation to that of the
- original file did'nt seem to work.
-
- I also tried clearing the hasBeenInited bit in fdFlags to see if this would
- help but I still had to close and re-open the folder to see changes.
-
- Is there a way to change the creator, keep the same file location and have
- Finder display the new icon when it gets background time without too much
- trouble? ResEdit seems to be able to do this.
-
- ----------------------------------------------------
- - Steve Herman - BCSS
- - Boeing Computer Support Services
- - Huntsville, AL
- ----------------------------------------------------
-