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

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


  • Follow-Ups:
    • Re: Color fun with IBOutlet named "appNameLabel"
      • From: Kyle Sluder <email@hidden>
References: 
 >Color fun with IBOutlet named "appNameLabel" (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Unknown class ‘MyCustomView', using 'NSView' instead
  • Next by Date: [RESOLVED] Re: How can I set a minimal height for a UITableView?
  • Previous by thread: Color fun with IBOutlet named "appNameLabel"
  • Next by thread: Re: Color fun with IBOutlet named "appNameLabel"
  • Index(es):
    • Date
    • Thread