Re: Adding Padding To The ‘left’ of a Text Field.
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