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: Heinrich Giesen <email@hidden>
- Date: Tue, 30 May 2006 11:17:31 +0200
On May 30, 2006, at 10:26 AM, Gregory Weston wrote:
There's not any explicit way to signal to the view that
any cached data is likely to be invalid?
tell the NSImage object that the representation(s) changed
and new rendering must be done:
[theImage recache];
The docs say:
Invalidates and frees the offscreen caches of all image
representations.
Maybe you should/must also say that the imageRep should be retained:
theImage = [[NSImage alloc] initWithSize:NSZeroSize];
[theImage addRepresentation:theImageRep];
[theImage setDataRetained:YES];
Heinrich
--
Heinrich Giesen
email@hidden
_______________________________________________
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