Newsgroups: comp.sys.mac.programmer Path: utzoo!utgpu!cunews!bnrgate!bmers95!bmerh563!slang From: slang@bmerh563.bnr.ca (Steven Langlois) Subject: File Icon location in the Finder Message-ID: <1991Mar15.145457.278@bmers95.bnr.ca> Keywords: AppleTalk Sender: usenet@bmers95.bnr.ca Organization: Bell-Northern Research Ltd. References: <2859@sparko.gwu.edu> Date: Fri, 15 Mar 91 14:54:57 GMT I seem to be unable to control the location of a file icon. In particular when I am overwritting a file, I call FSDelete to delete the file and FSCreate to create a new file with the same name. Before I delete the file with FSDelete, I save the location of the icon using location := paramBlock.ioFlFndrInfo.fdLocation. After I recreate the file I call PBGetFInfo to get the paramBlock of the newly created file and then attempt to reset the location of the newly created file to the saved location by using paramBlock.ioFlFndrInfo.fdLocation := location and then calling PBSetFInfo to set the location of the icon to that of the original file. This does not seem to work. Does anybody know what I am doing wrong. Thanks, Steven Langlois ISDN Basic Rate Access BNR, a subsidiary of Northern Telecom Bitnet: slang@bnr.ca Bitnet from AppleLink: slang@bnr.ca@DASNET#