Re: View subview buttons are all transparent
Re: View subview buttons are all transparent
- Subject: Re: View subview buttons are all transparent
- From: Steve Christensen <email@hidden>
- Date: Mon, 13 Feb 2017 18:15:49 -0800
Have you checked the alpha property at runtime on all views back up the hierarchy from your NSButtons? Maybe add some code to the action for one of those buttons that logs view properties, including alpha? Click and then see which view is the culprit and why. Otherwise you're just speculating.
NSView* view = sender;
while (view != nil)
{
NSLog(@"%@: alpha = %f", NSStringFromClass(view.class), view.alpha);
view = view.superview;
}
On Feb 13, 2017, at 5:29 PM, email@hidden wrote:
>
>> On 14/02/2017, at 9:50 AM, Alex Zavatone <email@hidden> wrote:
>>
>> Do you us any view, button or control categories where you might override the hidden property?
> No. I have no categories anywhere.
> Even if hidden was overridden, it would not explain why they are transparently visible when the parent view’s BG was black.
> hidden state is not the issue. Transparency is.
> Is there some hidden alpha property not visible in IB?
> Looks like their alpha is ~10%.
>
>
>> On Feb 12, 2017, at 3:18 PM, tridiak wrote:
>>
>>> I have a oldish app which needs updating (iTunesConnect flagged it).
>>> Mac OS app. Original target OS was 10.8 & SDK 10.9.
>>> Updated it to build on XC 8 and I have a view hierarchy (see below) where all the buttons are transparent even though they are not flagged as such.
>>>
>>> NSBox
>>> NSView
>>> NSButton
>>> NSButton
>>> NSButton
>>> NSButton
>>> (11 more buttons)
>>>
>>> I have manually changed the transparency flag to and from transparent on a button and it is still transparent.
>>> Added a new button in, still transparent.
>>> The rest of the window is fine and everything else displays properly.
>>>
>>> NSBox is not transparent.
>>> The buttons are using cells still (don’t know if that makes a difference).
>>>
>>> An older, functioning version of the application (built 3yrs ago) runs without any transparency issues. So XC is doing something.
>>>
>>> Any ideas
>>> TIA
>>> Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden