RE: How to get Tool Tip color ? -- Solved
RE: How to get Tool Tip color ? -- Solved
- Subject: RE: How to get Tool Tip color ? -- Solved
- From: "Chen Wang" <email@hidden>
- Date: Wed, 16 Nov 2005 17:53:53 -0500
- Thread-topic: How to get Tool Tip color ? -- Solved
Just for anybody who is looking for a cocoa solution to retrieve tool
tip color. The code is:
NSColor *theToolTipColor = (NSColor *)[NSColor performSelector:
@selector(toolTipColor)];
Chen
>It works! Although it is not "officially" documented. So, the next
thing
>is try to get ride of the harmless warning.
>
>By the way, I'm using XCode 2.2, targeted to Max OS X 10.2.8 (GCC 3.3)
>
>Thanks a lot!
>
>Chen
>>
>> In cocoa, is it possible to get that (yellow) color which is being
>> used
>> as the background of Tool Tip?
>
>I logged a feature request to support this in NSColor.
>>
>>
>> I'm trying to build a small custom window which must have the same
>> background color as tool tip's. I've tried all system colors that the
>> NSColor class can return, but still out of luck. I know that I can
>>
>
>Unofficially, you might be able to send NSColor a toolTipColor message
>and get the color you want.
>
>-corbin
Confidentiality Notice: This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or this information has been inappropriately forwarded to you, please contact the sender by reply e-mail and destroy all copies of the original.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden