Big Ones Smacked Down

• Chris Liscio

Yesterday I spent some quality time with FuzzMeasure. I set out to fix the printing issue, as well as add other graph output features. It turns out that there was no upper limit on the number of points in an NSBezierPath to cause the curve not to show up in a printout. </p> <p> I started out by working on copy/paste, so that I could kill two birds with one stone. Not only would I now have the feature working, but I could also potentially view the raw postscript data when I paste the graph into another application. My hunch was that the graph would show up on the pasteboard. </p> <p> Sure enough, when pasting to another application, the curve still didn't show up. I felt as if I probably didn't know enough to continue, and hit the developer documentation to try and get some hints. When I was reading down the list of NSBezierPath functions, I came across setLineWidth. I wondered if I had done something silly like making a 0.01-wide line in my testing. Sure enough, there was no call to setLineWidth at all in the graph curve code. Adding a call to set the line width to 1.0 made my curve show up in all its glory in both printouts and copy/paste operations! </p> <p> Now I have to go around and find all the spots where I asked for help, and post an update. :P </p>