To start with, coding of images is complete. Yup, it's a done deal. All it needs is an icon.
On to pdfs. 2 days and a lot of headaches, several failed attempts at creating code, I have succeeded in creating a selection rectangle that works with PDFViews. My knowledge of programming graphics is minimal. I was highly dependent on the code that Apple circulates called Crop Marker or cropping view or some such. It took a lot of mods, however to get it to work. Here are some breadcrumbs to help other fools who go down this road:
Also, I built a new release of TAMS 3 with the fixes to rtfd reading (as well as older bugs). Available as always at the tams website
1. you need to override drawpage not drawrect
2. you need to do a double coordinate transformation: global->pdfview->pdfpage to get your selection to go to the right spot. This rect sizes correctly if you scale.
3. you need to check the page whenever the mouse goes down and you draw, otherwise your selection rect appears on every page of the pdf.
So this means that the biggest stumbling block to coding PDFs has been crossed. There's a lot of work to be done, but it's quite doable now that the basic mechanism for marking pdfs has been worked out.
TAMS will support both pdf's native "text" selection, and rectangular area image selection.
Only one mystery remains: what method initializes my subclass of PDFView?