Re: To know what shows in the first line of a multiline NSTextField

2010-05-12 Thread Uli Kusterer
On May 12, 2010, at 1:28 PM, Graham Cox wrote: > 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. Y

Re: To know what shows in the first line of a multiline NSTextField

2010-05-12 Thread Graham Cox
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 perfor

Re: To know what shows in the first line of a multiline NSTextField

2010-05-12 Thread Graham Cox
On 12/05/2010, at 5:53 PM, Nick Rogers wrote: > Hi, > I have resized a multiline text field to show two lines of text (in IB). > Now I want to know what it is displaying in the first line (or the length of > it) even if the first inputted line is longer than a visible line and wraps > around to

To know what shows in the first line of a multiline NSTextField

2010-05-12 Thread Nick Rogers
Hi, I have resized a multiline text field to show two lines of text (in IB). Now I want to know what it is displaying in the first line (or the length of it) even if the first inputted line is longer than a visible line and wraps around to the next visible line. Is it possible? Searched the docs