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.

On 21-Feb-09, at 6:10 AM, Ulai Beekam wrote:


Hi,

Just take a look at any toolbar text in Leopard. It has a subtle, white shadow. How can I get this very same effect in my own app when using NSString's drawInRect method? What attributes to use? Do you have any sample code?

Thanks, U.



_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/bwalkin%40gmail.com

This email sent to bwal...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to