Re: Image cache: Where is it and how do I refresh it?
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