Color fun with IBOutlet named "appNameLabel"
Color fun with IBOutlet named "appNameLabel"
- Subject: Color fun with IBOutlet named "appNameLabel"
- From: Markus Spoettl <email@hidden>
- Date: Tue, 10 Feb 2015 15:34:28 +0100
Hi,
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.
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