Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: Please help w/ PBSetCatInfo Message-ID: <37560@apple.Apple.COM> Date: 2 Jan 90 20:31:53 GMT References: <30340@shemp.CS.UCLA.EDU> Distribution: usa Organization: Apple Computer Inc, Cupertino, CA Lines: 34 In article <30340@shemp.CS.UCLA.EDU> tj@oahu.cs.ucla.edu (Tom Johnson) writes: > > error=PBGetCatInfo(&myInfoRec,false); > if (error != noErr) SysBeep(10); >/*I was making a few changes here, but even when they were >removed, the problem didn't go away*/ > error=PBSetCatInfo(&myInfoRec,false); > if (error != noErr) Debugger(); > >When I run this code, no error is detected on the PBSetCatInfo call and >the CInfoPBRec appears to be correctly filled in, but PBSetCatInfo >returns error=FFD5 a fnfError (file not found). Does anybody have >any idea why? This has been driving me crazy for hours!! Tom, I think that what is happening is that your ioDirID field is being changed from MyCurID on the PBGetCatInfo call. Then, when you try the PBSetCatInfo call, you are using a DirID different from the original one. Or something like that. Maybe the field in question is ioVRefNum. At any rate, I remember having a similar problem not too long ago, and the solution was to re-initialize some fields that got changed after the PBGetCatInfo call. Or perhaps your ioFDirIndex field is being changed from -1 to 0, since you are getting a _file_ not found error. Sorry for being so fuzzy... -- ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. --- Developer Technical Support INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions