• 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: Image cache: Where is it and how do I refresh it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image cache: Where is it and how do I refresh it?


  • Subject: Re: Image cache: Where is it and how do I refresh it?
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 29 May 2006 23:55:58 -0700


On May 27, 2006, at 7:51 AM, Gregory Weston wrote:

If I remove the imagerep from the image and add a new one created from the same buffer it works.

NSImage has no way to know the you've changed the contents of any of its image reps. Once it's generated a cached image for a given resolution, it will hang onto it. It shouldn't be necessary to create a new instance, though. Removing the rep and then re-adding it should suffice.


Is your view subclass actually an NSImageView subclass? If so, it's making its own cached image, too.

-jcr

John C. Randolph <email@hidden> (408) 914-0013
RoamingCocoa Engineer,
Available at great Expense and Inconvenience.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Image cache: Where is it and how do I refresh it?
      • From: Gregory Weston <email@hidden>
References: 
 >Image cache: Where is it and how do I refresh it? (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: Newbie: TicTacToe Project
  • Next by Date: Re: Image cache: Where is it and how do I refresh it?
  • Previous by thread: Re: Image cache: Where is it and how do I refresh it?
  • Next by thread: Re: Image cache: Where is it and how do I refresh it?
  • Index(es):
    • Date
    • Thread