• 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: optimizing background image drawing with -drawRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >optimizing background image drawing with -drawRect (From: Artemiy Pavlov <email@hidden>)
 >Re: optimizing background image drawing with -drawRect (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: error displaying @count via bindings
  • Next by Date: Re: optimizing background image drawing with -drawRect
  • Previous by thread: Re: optimizing background image drawing with -drawRect
  • Next by thread: Adding delegate connections to NSButton
  • Index(es):
    • Date
    • Thread