Re: Reference Count Underflow when Writing PDF

2009-07-16 Thread Bill Bumgarner
On Jul 15, 2009, at 6:25 PM, K. Darcy Otto wrote: (1) Contrary to my first message, it appears to me now that PDFDocument inherits from NSObject. So, i shouldn't have to do any special memory management, right? You shouldn't. It is a bug in the PDFKit framework. Please file a bug via

Reference Count Underflow when Writing PDF

2009-07-15 Thread K . Darcy Otto
I have a PDF that I've loaded, combined with another PDF, and now I'm ready to save the result as a new file. My program is using garbage collection, but I understand that PDFKit is not garbage collected. The problem is that I get reference count underflow error when writing the PDF.

Re: Reference Count Underflow when Writing PDF

2009-07-15 Thread K. Darcy Otto
In an effort to get out of this problem, I also thought I might just take a data representation of the PDFDocument object, and write the data to a file. I get the same problem. Here is what I tried, substituting for [savedDoc writeToFile:@newFile.pdf] below: NSData *myData = [savedDoc