• 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: How to get Tool Tip color ? -- Solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to get Tool Tip color ? -- Solved
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Need suggestion for data storage solution for AB-like app
  • Next by Date: Re: How to get Tool Tip color ? -- Solved
  • Previous by thread: Re: CoreData: predicate for empty relationship?
  • Next by thread: Re: How to get Tool Tip color ? -- Solved
  • Index(es):
    • Date
    • Thread