• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage release causing NSPrintOperation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSImage release causing NSPrintOperation problem
      • From: Brock Brandenberg <email@hidden>
  • Prev by Date: Re: embedding libraries
  • Next by Date: Re: Weird linking problems
  • Previous by thread: NSImage release causing NSPrintOperation problem
  • Next by thread: Re: NSImage release causing NSPrintOperation problem
  • Index(es):
    • Date
    • Thread