• 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: Gregory Weston <email@hidden>
  • Date: Tue, 30 May 2006 06:22:40 -0400

On May 28, 2006, at 6:35 AM, Lon Giese wrote:

[My issue is unexpected caching after messing with the pixel buffer of an NSBitmapImageRep]
I'm surprised no one has replied to this question, but I'll give it a shot...

I think I remember reading something that you need to request the bytes pointer (even if you don't ned it) every time you update the pixel buffer - that has the implicit effect of informing NSImage that the pixel buffer has/will change... Let me know if that worked for you... I don't remember exactly where I read that, probably in the image architecture docs.

Surreal as this sounds, this works. Removing and adding the existing rep doesn't do anything. Sending recache to the NSImage didn't help either. But sending bitmapData to my image rep does apparently signal the image (via the rep, I presume) that its cache is likely to be stale.


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


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

  • Prev by Date: addTrackingRect: some events are missing
  • Next by Date: NSRulerView: distance between two neighbouring hash marks
  • 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