frobozz@pyr.gatech.EDU (geoff george) (05/31/90)
I'm using the phone book (promotional) IM, what later became IM I-III. It says that if GetResource can't find the requested resource, it returns a NIL handle and ResError will then return resNotFound. I checked IM I in a bookstore, which said the same thing; this one was printed in late 1988, September I think. A friend of mine has a hard-cover volume containing IM I-III, which says that ResError will actually return noErr if the resource is not found. This is what appears to be happening on my machine. I can't find anything about this in the TechNotes that I have. What's the scoop? What's the official answer? I'm using a Mac II, System 6.0.4 and Think C 4.01, FYI. Thanks, geoff george -- Internet: frobozz@pyr.gatech.edu uucp: ...!{decvax,hplabs,ihnp4,linus,rutgers,seismo}!gatech!gitpyr!frobozz "Ordinary f---ing people - I hate 'em. Ordinary person spends his life avoiding tense situations; repo man spends his life getting INTO tense situations."
aries@rhi.hi.is (Reynir Hugason) (06/01/90)
If GetResource doesn't find the resource, it will return NIL and the ResError function will return the result code resNotFound; however, if the resource type isn't in any open resource file, it also returns NIL but the ResError function will return the result code NoErr. Hope this answers your question. +++ Mimir (aries@rhi.hi.is) - Aries, Inc.