• 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: Drawing over a transparent background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing over a transparent background


  • Subject: Re: Drawing over a transparent background
  • From: Ron Fleckner <email@hidden>
  • Date: Mon, 24 Aug 2009 15:00:14 +1000


On 24/08/2009, at 2:29 PM, Rob Keniger wrote:


On 24/08/2009, at 9:33 AM, Ron Fleckner wrote:

My borderless window has a semi-transparent background. When the drawing in a subview changes, the background retains a ghost of the original drawing in the subview. I don't want that ghost image!


What are you returning for the -isOpaque method of your custom view? If your view has any parts that have an alpha less than 1.0 then you must return NO from this method.


On 24/08/2009, at 2:36 PM, Kyle Sluder wrote:

On Aug 23, 2009, at 4:33 PM, Ron Fleckner <email@hidden> wrote:

My borderless window has a semi-transparent background. When the drawing in a subview changes, the background retains a ghost of the original drawing in the subview. I don't want that ghost image!

Have you remembered to override -isOpaque to return NO?

Yes, I return NO. There are four views, each one a subview (built in IB) of the one below. The background is the content view of the window with hourHand as a subview, which has minuteHand as a subview, which has secondHand as a subview. To draw, a timer callback tells the bottom view to setNeedsDisplay:YES every second. Each 'hand' view then rotates by the correct amount and draws it's hand.


I've googled a bit but it's very discouraging.

Thanks anyway,

Ron

_______________________________________________

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: Drawing over a transparent background
      • From: Steve Christensen <email@hidden>
References: 
 >Drawing over a transparent background (From: Ron Fleckner <email@hidden>)
 >Re: Drawing over a transparent background (From: Rob Keniger <email@hidden>)

  • Prev by Date: Re: authorization services
  • Next by Date: scroll automatically if the text is too long
  • Previous by thread: Re: Drawing over a transparent background
  • Next by thread: Re: Drawing over a transparent background
  • Index(es):
    • Date
    • Thread