• 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 in a view with alpha < 1.0 shows windows behind
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing in a view with alpha < 1.0 shows windows behind


  • Subject: Re: Drawing in a view with alpha < 1.0 shows windows behind
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 31 Mar 2015 16:14:48 +0100

> On 31 Mar 2015, at 15:59, Charles Jenkins <email@hidden> wrote:
>
> I confused the view with the color, but in essence that’s what I was afraid you were saying: that Yosemite is blending with unrelated content instead of what is layered by your app/view/window/whatever “under” the rectangle you’re trying to fill.
>
> I believe you should file a bug report on this.

Nope, this is the intended design.

The standard drawing model for Cocoa on OS X is that views draw into a single context for the whole window. Normally then views draw their content *atop* any existing content, so as to build up the correct result. e.g. you composite a translucent colour *over* the existing graphics there.

By using NSRectFill you are instead *replacing* whatever is there with your translucent colour. Consequently, whatever is behind the window is now free to appear through that translucency. As Uli said, you want to use a different compositing operation, to give the correct result.


_______________________________________________

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


References: 
 >Re: Drawing in a view with alpha < 1.0 shows windows behind (From: Charles Jenkins <email@hidden>)
 >Re: Drawing in a view with alpha < 1.0 shows windows behind (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Re: Drawing in a view with alpha < 1.0 shows windows behind
  • Next by Date: Re: Drawing in a view with alpha < 1.0 shows windows behind
  • Previous by thread: Re: Drawing in a view with alpha < 1.0 shows windows behind
  • Next by thread: Re: Drawing in a view with alpha < 1.0 shows windows behind
  • Index(es):
    • Date
    • Thread