• 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: Discussion on how to draw text like that seen in toolbars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Discussion on how to draw text like that seen in toolbars


  • Subject: Re: Discussion on how to draw text like that seen in toolbars
  • From: Brandon Walkin <email@hidden>
  • Date: Mon, 4 May 2009 17:27:07 -0400

[yourTextFieldCell setBackgroundStyle:NSBackgroundStyleRaised];

This method was introduced in 10.5. If you require Tiger compatibility, you can use NSShadow but you'll be losing subpixel antialiasing.

Alternately, you can use BWInsetTextField which is part of the BWToolkit IB plugin: http://brandonwalkin.com/bwtoolkit/

-Brandon


On 1-May-09, at 6:42 PM, Alex Kac wrote:

I know there was a discussion about this a few months ago on this list, but I cannot find the right terms to search for. The discussion was how to draw text so that it was sunken much like you see in the toolbar. I just remember there was a specific way recommended to do it and I can't find it. Drawing the text twice is more of a shadow effect, so I don't think that was it...

Alex Kac - President and Founder
Web Information Solutions, Inc.

"Patience is the companion of wisdom."
--Anonymous




_______________________________________________

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


References: 
 >Discussion on how to draw text like that seen in toolbars (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: Programmatically Changing Display(s) to Greyscale
  • Next by Date: Re: NSXMLParser frees itself on error?
  • Previous by thread: Re: Discussion on how to draw text like that seen in toolbars
  • Next by thread: Re: Discussion on how to draw text like that seen in toolbars
  • Index(es):
    • Date
    • Thread