• 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: Adding Padding To The ‘left’ of a Text Field.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Padding To The ‘left’ of a Text Field.


  • Subject: Re: Adding Padding To The ‘left’ of a Text Field.
  • From: Graham Cox <email@hidden>
  • Date: Fri, 7 Aug 2009 20:30:35 +1000


On 07/08/2009, at 5:18 PM, Joshua Garnham wrote:

I have a text field with a background but to make it look right the text
field needs to have some padding (or a slight indent) on the left side of it a bit like the
NSSearchField (because of the search image). How would I give the text field some padding on the left?


If you can set the attributedString value of the text field rather than the plain stringValue, you can set an indent in the attributed string's paragraph style.

--Graham


_______________________________________________

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: 
 >Adding Padding To The ‘left’ of a Text Field. (From: Joshua Garnham <email@hidden>)

  • Prev by Date: Re: Adding Padding To The ‘left’ of a Text Field.
  • Next by Date: Re: Adding Padding To The ‘left’ of a Text Field.
  • Previous by thread: Re: Adding Padding To The ‘left’ of a Text Field.
  • Next by thread: poor genstrings
  • Index(es):
    • Date
    • Thread