Re: To know what shows in the first line of a multiline NSTextField
Re: To know what shows in the first line of a multiline NSTextField
- Subject: Re: To know what shows in the first line of a multiline NSTextField
- From: Graham Cox <email@hidden>
- Date: Wed, 12 May 2010 21:28:07 +1000
On 12/05/2010, at 9:23 PM, Graham Cox wrote:
> You can do it by getting down into the NSLayoutManager used by the text view
Note that with a text FIELD this is not as straightforward (not that it was anyway), because the text field doesn't keep a layout manager. I'm not sure how fields perform text layout - perhaps by using the field editor, or by using a temporary layout manager they create on the fly, or something else. I'm afraid I can't help much with that, but someone else might be able to.
--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