• 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: Charles Jenkins <email@hidden>
  • Date: Tue, 31 Mar 2015 09:01:19 -0400

Eyal,

I don’t have an answer for you, just a request for clarification. If a view has a low alpha setting, you expect the content behind it to show through, so your description sounds like normal behavior. However, I suspect you’re dealing with a real problem.

Are you saying that your view with low alpha is above other content in your app, but instead of the information which *should* show through, Yosemite is blending with other content—content from windows or the desktop behind your app?

-- 

Charles

On March 31, 2015 at 08:59:48, Charles Jenkins (email@hidden) wrote:

Eyal,

I don’t have an answer for you, just a request for clarification. If a view has a low alpha setting, you expect the content behind it to show through, so your description sounds like normal behavior. However, I suspect you’re dealing with a real problem.

Are you saying that your view with low alpha is above other content in your app, but instead of the information which *should* show through, Yosemite is blending with other content—content from windows or the desktop behind your app? 

-- 

Charles

On March 31, 2015 at 08:42:30, Eyal Redler (email@hidden) wrote:

Hi,

I'm working on a custom view. I'm using the following code to draw the view

[[NSColor colorWithDeviceRed:(float)42/255
green:(float)49/255
blue:(float)58/255
alpha:0.5] set];
NSRectFill([self bounds]);

[[NSColor colorWithDeviceRed:(float)242/255
green:(float)110/255
blue:(float)80/255
alpha:1.0] set];

NSFrameRect([self bounds]);

For some reason the view is showing through the windows/desktop behind the window where my view is located.
Surly this is a manifestation of one of the (somewhat unwanted IMO) features of Yosemite but I've not been able to find where I can opt out of this.
The window I'm drawing to is a custom window, if that matters

TIA

Eyal _______________________________________________

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
_______________________________________________

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 in a view with alpha < 1.0 shows windows behind
      • From: Charles Jenkins <email@hidden>
  • Prev by Date: Re: Does "- replaceItemAtURL: withItemAtURL: backupItemName: options: resultingItemURL: error:" handle cross-volume moves?
  • Next by Date: Re: Drawing in a view with alpha < 1.0 shows windows behind
  • Previous by thread: Re: Does "- replaceItemAtURL: withItemAtURL: backupItemName: options: resultingItemURL: error:" handle cross-volume moves?
  • Next by thread: Re: Drawing in a view with alpha < 1.0 shows windows behind
  • Index(es):
    • Date
    • Thread