Removing a NSCachedImageRep from NSImage
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.