Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!mikeoro From: mikeoro@hubcap.clemson.edu (Michael K O'Rourke) Newsgroups: comp.sys.mac.programmer Subject: Unlocking a File Message-ID: <7135@hubcap.clemson.edu> Date: 20 Nov 89 14:29:49 GMT Organization: Clemson University, Clemson, SC Lines: 15 I was recently playing around with trying to unlock a file with the file manager. I was using PBGetCatInfo to go thru directories, so i thought i'd used PBSetCatInfo to set the file lock. Seeing as how the ioFlAttrib field will tell you if a file is locked, i figured i could just turn off the locked bit and the do a PBSetCatInfo and the file would then be unlocked. No such luck. I ended up finding out about and using PBRstFLock. Why didn't the PBSetCatInfo call work? What if i had wanted to change one of the ioFlAttrib bits other than the locked bit. What would i have been able to do then? Is there some little trick to using PBSetCatInfo for this? Thanx, Michael O'Rourke