• 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: Shamyl Zakariya <email@hidden>
  • Date: Mon, 2 Apr 2007 17:08:40 -0400

Glad to be of service.

That being said, I Savant's approach is a little more clever, deferring the load of the image until the moment it's actually needed.

shamyl zakariya

It probably means that the choice of the next American president will be
taken out of the hands of deep-pocket, autofellating, corporate shitbags and
put it into the hands of some teenager in Finland. How is that not an
improvement?


    - scott adams, on electronic voting


On Apr 2, 2007, at 2:58 PM, Artemiy Pavlov wrote:

Shamyl, thanks very much, that did it! I tried -awakeFromNib but did not know I need to declare the image as a member variable.



Artemiy.

On 2 Apr 2007, at 9:26 PM, Shamyl Zakariya wrote:

Load the image in -awakeFromNib and hold onto it as a member variable, draw it in drawRect:


_______________________________________________

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


  • Follow-Ups:
    • Re: optimizing background image drawing with -drawRect
      • From: Shawn Erickson <email@hidden>
References: 
 >optimizing background image drawing with -drawRect (From: Artemiy Pavlov <email@hidden>)
 >Re: optimizing background image drawing with -drawRect (From: Shamyl Zakariya <email@hidden>)
 >Re: optimizing background image drawing with -drawRect (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Re: error displaying @count via bindings
  • Next by Date: Re: updating UI during long loop using cocoa objective-c
  • Previous by thread: Re: optimizing background image drawing with -drawRect
  • Next by thread: Re: optimizing background image drawing with -drawRect
  • Index(es):
    • Date
    • Thread