home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14571 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. 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
  3. From: steve.herman%express@freedom.msfc.nasa.gov (Steve Herman)
  4. Subject: Changing a file's creator?
  5. Message-ID: <steve.herman-260892161943@128.158.4.199>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@lambda.msfc.nasa.gov (Newsmaster)
  8. Nntp-Posting-Host: hermasj.msfc.nasa.gov
  9. Organization: BCSS
  10. Date: Wed, 26 Aug 1992 21:30:09 GMT
  11. Lines: 25
  12.  
  13.     Is there a way to force the Finder to update the screen with a file's new
  14. Icon after changing the file's Creator?
  15.  
  16.     When replacing a file, my program uses FSpSetFInfo to change the existing
  17. file's type and creator to those I want. However, the file's Icon doesn't
  18. change until I close and re-open the folder which contain's it (or do a Get
  19. Info).
  20.  
  21. Initially I tried deleting the original file and then using FSpCreate and
  22. this gives me the correct icon but it moves the file to a different
  23. location within the window. Setting the fInfo.fdLocation to that of the
  24. original file did'nt seem to work.
  25.  
  26. I also tried clearing the hasBeenInited bit in fdFlags to see if this would
  27. help but I still had to close and re-open the folder to see changes.
  28.  
  29. Is there a way to change the creator, keep the same file location and have
  30. Finder display the new icon when it gets background time without too much
  31. trouble?  ResEdit seems to be able to do this.
  32.  
  33. ----------------------------------------------------
  34. - Steve Herman - BCSS
  35. - Boeing Computer Support Services
  36. - Huntsville, AL
  37. ----------------------------------------------------
  38.