• 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
Color fun with IBOutlet named "appNameLabel"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Color fun with IBOutlet named "appNameLabel"
      • From: Graham Cox <email@hidden>
    • Re: Color fun with IBOutlet named "appNameLabel"
      • From: Markus Spoettl <email@hidden>
  • Prev by Date: Re: NSBezierPath + thin lines + antialias = :(
  • Next by Date: Re: Disable Text Replacement
  • Previous by thread: Re: Disable Text Replacement
  • Next by thread: Re: Color fun with IBOutlet named "appNameLabel"
  • Index(es):
    • Date
    • Thread