Re: optimizing background image drawing with -drawRect
Re: optimizing background image drawing with -drawRect
- Subject: Re: optimizing background image drawing with -drawRect
- From: "I. Savant" <email@hidden>
- Date: Mon, 2 Apr 2007 14:33:58 -0400
On 4/2/07, I. Savant <email@hidden> wrote:
- (NSImage *)cachedImage
{
if (!cachedImage)
cachedImage = ...; // get/assign image here.
return cachedImage;
}
I forgot to mention you'll want to retain the cachedImage in the
above method ... :-}
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden