• 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: Changing Text Field Color to Custom Color in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing Text Field Color to Custom Color in IB


  • Subject: Re: Changing Text Field Color to Custom Color in IB
  • From: Folami Nguyen <email@hidden>
  • Date: Fri, 05 Jul 2013 10:05:35 +0700

When you are dealing with NSColor in Mac OS X. You must pay attention to
current NSColorSpace. It is depend on your current color profile. It is
changable in the System Preference.
If the code you are make NSColor object by message
colorWithCalibratedRed:green:blue:alpha:, you are using
NSCalibratedRGBColorSpace. The current color profile is "Color LCD", it is
used NSCustomColorSpace. So you see the color in the screen is different as
you expected.


2013/7/4 Dave <email@hidden>

> Hi,
>
> How do you change a label field's color to a custom color in Interface
> Builder? I want the labels to have the their RGB values set to 72, 35, 122.
> I select the field in interface builder Click on the Color field in the
> appropriate strip on the right and it's hit and miss what happens!!!
> Sometimes I get a completely different color, sometimes it changes the
> background color sometimes it does nothing.
>
> Is this another of XCode 4's bugs?
>
> Thanks a lot
> Dave
>
>
> _______________________________________________
>
> 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
_______________________________________________

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


References: 
 >Changing Text Field Color to Custom Color in IB (From: Dave <email@hidden>)

  • Prev by Date: Javascript call function Objective-C
  • Next by Date: Re: Why isn't scrollRectToVisible animating?
  • Previous by thread: Re: Changing Text Field Color to Custom Color in IB
  • Next by thread: Post to a particular friend or friends group on Facebook
  • Index(es):
    • Date
    • Thread