Re: Color fun with IBOutlet named "appNameLabel"
Re: Color fun with IBOutlet named "appNameLabel"
- Subject: Re: Color fun with IBOutlet named "appNameLabel"
- From: Markus Spoettl <email@hidden>
- Date: Sun, 22 Feb 2015 12:48:43 +0100
On 10/02/15 15:34, Markus Spoettl wrote:
I have an about window with a label for the app name on it. That label was
connected to an outlet named "appNamelabel" on its window controller. There are
a couple of other labels on the same window, connected to other outlets.
The labels are all inside an NSVisualEffectsView which is in "behind window"
mode with dark appearance. So all labels are white-ish. Almost. The app name
label is black instead of white (despite being set up identically to the other
labels on the window).
I spent the last couple of hours trying to make sense of it. Then I renamed the
outlet to "nameLabel", bingo! For some inexplicable reason NSWindowController
(or whatever) sets the label color based on the outlet name. Aaahhhrrrgggggg.
This is on Yosemite, Xcode 6.1.1. Purely informational in case someone else
encounters this.
Seems like "addressLabel" is another magic IBOutlet name that triggers the
color-setting behavior.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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