• 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
Removing a NSCachedImageRep from NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Removing a NSCachedImageRep from NSImage


  • Subject: Removing a NSCachedImageRep from NSImage
  • From: Brock Brandenberg <email@hidden>
  • Date: Sat, 07 Sep 2002 18:37:14 -0500

Does anyone know the best way to remove the NSCachedImageRep for an NSImage?
[NSImage recache] doesn't destroy the cached reps and I think it's messy to
get the array of reps, find the cached one by class name and remove it that
way. I'd like to use a cached image rep for on-screen drawing, but need to
branch in my draw method to use the PDFImageRep (of an NSImage loaded from a
PDF file) when generating PDF data to save to a file. I'm forcing "never
cache" right now, but want to bring the cached rep back into use.

Thanks,
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.

  • Prev by Date: inserting into a textfield?
  • Next by Date: Re: NEWBIE: NSArray toll-free-bridged with CFArray?
  • Previous by thread: Re: inserting into a textfield?
  • Next by thread: Re: Removing a NSCachedImageRep from NSImage
  • Index(es):
    • Date
    • Thread