Understand the difference between HLOCK and SETRESATTRS
For a long time I have been reading resources and normally making them hang around in memory using the toolbox call "FN HLOCK(Hndl&)". While it seems to work, I was looking at SETRESATTRS today and wondering if perhaps with resources it should be done that way instead.
SetResAttrs is for setting the attributes of a resource when saving it to disk. This is usually done to ensure that the next time a resource is loaded into memory, it is locked, purgeable, preload, etc. These are the attributes you see when viewing resources in ResEdit or Resorcerer. You shouldn't have to mess with this unless you are creating your own resources and wish to have them load a certain way the next time they are loaded. I wouldn't worry about it - it can get complicated, and isn't something you really need.