Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!gatech!hubcap!mikeoro From: mikeoro@hubcap.clemson.edu (Michael K O'Rourke) Newsgroups: comp.sys.mac.programmer Subject: Re: ResError Bug? Message-ID: <5926@hubcap.clemson.edu> Date: 6 Jul 89 01:44:47 GMT References: <5914@hubcap.clemson.edu> <14217@dartvax.Dartmouth.EDU> <32877@apple.Apple.COM> Organization: Clemson University, Clemson, SC Lines: 19 In article <32877@apple.Apple.COM>, cjp@Apple.COM (Chris Plummer) writes: > >This, by the way, is in fact documented in inside mac in the > >Resource Manager chapter. If a GetResource call cannot find > >the resource, it returns a NIL handle but does not generate > >a resource mamager error. > > > Not quite. ResError will return noErr if the resource **type** is not > found. If the resource type is found but the resource is not then > ResError should return resNotFound. The is all documented in IM I-119. > By the way, if you use the Inside Mac DA, the writeup for GetResource > does not include the note from IM I that talks about ResError returning > noErr if the resource type isn't found. Okay. But there IS a resource type of PICT in the file. It just doesn't have the number that i am trying to access. So according to your description, it should return resNotFound. It DOESN'T though. Why? Michael O'Rourke