• 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
Correctly drawing a custom view...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correctly drawing a custom view...


  • Subject: Correctly drawing a custom view...
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Tue, 25 Nov 2008 10:22:41 -0500

I'm using a custom view that i simply fill with a gradient in the drawRect method....I love the result however, I realized after adding some controls to my custom view that the "rect" being drawn in drawRect is not always the view's frame, but it's often just a small part of the view getting re-drawn (for example after pressing a button, or after a control looses its focus ring, the area around the control is getting re-drawn )

Obviously my technique isn't working because when this happens, the area around the control is getting filled with the gradient and the result is definitely weird...

I was wondering if there is a way to prevent this from happening?


Jean-Nicolas Jolivet email@hidden http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Correctly drawing a custom view...
      • From: "I. Savant" <email@hidden>
  • Prev by Date: cocoadev.com status?
  • Next by Date: Re: Correctly drawing a custom view...
  • Previous by thread: cocoadev.com status?
  • Next by thread: Re: Correctly drawing a custom view...
  • Index(es):
    • Date
    • Thread