• 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 the "white shadow" effect when drawing NSStrings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the "white shadow" effect when drawing NSStrings?


  • Subject: Re: How to get the "white shadow" effect when drawing NSStrings?
  • From: Simone Tellini <email@hidden>
  • Date: Sat, 21 Feb 2009 12:27:13 +0100


Il giorno 21/feb/09, alle ore 12:22, Brandon Walkin ha scritto:

Use a cell to draw your text and call -setBackgroundStyle: on it with the parameter NSBackgroundStyleRaised. That'll apply the exact same shadow that's used on toolbar item labels. Keep in mind that this method is Leopard-only.


or he could simply draw the same string twice: first using the white color, then in black, shifting the y coord by 1 pixel. It should achieve the same effect and it'll work on previous OS X versions too.


--
Simone Tellini
http://www.tellini.org



_______________________________________________

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: 
 >How to get the "white shadow" effect when drawing NSStrings? (From: Ulai Beekam <email@hidden>)
 >Re: How to get the "white shadow" effect when drawing NSStrings? (From: Brandon Walkin <email@hidden>)

  • Prev by Date: Re: How to get the "white shadow" effect when drawing NSStrings?
  • Next by Date: infoForBinding not working as expected
  • Previous by thread: Re: How to get the "white shadow" effect when drawing NSStrings?
  • Next by thread: RE: How to get the "white shadow" effect when drawing NSStrings?
  • Index(es):
    • Date
    • Thread