Re: Avoiding Cached ImageReps?
Re: Avoiding Cached ImageReps?
- Subject: Re: Avoiding Cached ImageReps?
- From: Fritz Anderson <email@hidden>
- Date: Mon, 8 Jul 2002 01:20:27 -0500
On Sunday, July 7, 2002, at 07:46 PM, Gregory Weston wrote:
On 7/7/02 at 3:02 PM, Fritz Anderson <email@hidden> wrote:
It seems that as soon as I lock focus on the image, the contained
representation becomes an NSCachedImageRep,
This is documented.
Well... yeah. So is the Internal Revenue Code. That doesn't make it a friendly API.
To be serious, I'm not objecting to format-shifting. I'm objecting (to the extent I am objecting) to losing access to information I create with Cocoa methods. See other messages on this thread to the effect that the loss isn't as great as I'd feared.
and the underlying bitmap is forever out of my reach.
Have you tried asking the image for other representations it may have? An
NSImage is (or more precisely _has_) a collection.
Actually, I looked before asking. [MyImage representations] has at most one member at any time. The bitmap representation was replaced by the cached representation. But as I said elsewhere, I _think_ this is an artifact of my development machine's setup, and doesn't reflect what would happen in production systems. I mention it only because I don't want it thought I intentionally asked a half-baked question.
-- F
--
Fritz Anderson - Consulting Programmer - Chicago, IL
Mail: <email@hidden>
Resume: <
http://resume.manoverboard.org>
_______________________________________________
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.