Re: Changing Text Field Color to Custom Color in IB
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