• 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: Can't cache image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't cache image


  • Subject: Re: Can't cache image
  • From: Brock Brandenberg <email@hidden>
  • Date: Fri, 21 Mar 2003 11:54:06 -0600

> But, you can see that it exists if you create an NSPDFImageRep, add it to a
> new NSImage, make sure that the NSImage is set to NSImageCacheDefault, then
> draw the NSImage to the screen at a frame-to-bounds ratio that causes it to
> scale. It will be pixelated, illustrating that the PDF was rendered once to
> the cache, and then pulled from the cache to draw to the screen context.

I inadvertently put it too late in the paragraph, but the new NSImage also
needs setDataRetained: to be set YES before drawing to see the drawing come
from the off-screen cache without the presence of an NSCachedImageRep.

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.

References: 
 >Re: Can't cache image (From: Brock Brandenberg <email@hidden>)

  • Prev by Date: Separation of TextFieldCell and TextField subclasses
  • Next by Date: Re: Slightly Off Track --- What Happens to Safari Bug Reports?
  • Previous by thread: Re: Can't cache image
  • Next by thread: Re: Can't cache image
  • Index(es):
    • Date
    • Thread