Re: optimizing background image drawing with -drawRect
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