• 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: Avoiding Cached ImageReps?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Non-standard Cocoa RTF Unicode encoding?
  • Next by Date: Receive an URL through my applications icon?
  • Previous by thread: Re: Avoiding Cached ImageReps?
  • Next by thread: XML encoder/decoder
  • Index(es):
    • Date
    • Thread