NSTextField line breaking

2009-01-26 Thread John Nairn
In a nib file I can set line breaking mode of an NSTextField (e.g., clip, truncate front, middle, end, etc.). But, I cannot find and way to make that setting in a programmatically created NSTextField. I looked through NSTextField, NSTextFieldCell, and NSControl. John Nairn

Re: NSTextField line breaking

2009-01-26 Thread John Nairn
In a nib file I can set line breaking mode of an NSTextField (e.g., clip, truncate front, middle, end, etc.). But, I cannot find and way to make that setting in a programmatically created NSTextField. I looked through NSTextField, NSTextFieldCell, and NSControl. I just found it in NSCell

Re: NSTextField line breaking

2009-01-26 Thread Jonathan Hess
Hey John - Here are the methods you're looking for: - (void)setWraps:(BOOL)flag; - (void)setScrollable:(BOOL)flag; - (void)setScrollable:(BOOL)flag; They're from NSCell. Good Luck - Jon Hess On Jan 26, 2009, at 9:53 AM, John Nairn wrote: In a nib file I can set line breaking mode of an