Re: NSImage release causing NSPrintOperation problem
Re: NSImage release causing NSPrintOperation problem
- Subject: Re: NSImage release causing NSPrintOperation problem
- From: Brock Brandenberg <email@hidden>
- Date: Sat, 15 Feb 2003 01:19:24 -0600
>
The problem can be fixed by calling autorelease on the NSImage instead of
>
release. Very odd. It acts as though there is really an asynchronous operation
>
going on behind the scenes and the NSImage release is dealloc'ing the image
>
before the print operation is really finished. The autorelease seems to give
>
the job "more time" to finish.
I'm going to retract my statement that changing the NSImage release to an
autorelease always fixes the problem. I have now seen occurrences where it
did not solve the problem.
BTW, the NSView is an off-screen view that does not have an associated
window. I don't think that it's an issue because the same problem has
occurred when saving an on-screen view to a PDF file using
dataWithPDFInsideRect:.
Brock Brandenberg.
----- industrial design @ www.bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.