> On Apr 24, 2016, at 12:04 PM, Dave <[email protected]> wrote: > > I’m not sure what you mean? Is this a method or property on NSScrollView or > NSTextView? > > I can’t see it in the XIB file?
In an NSTextField, IB shows you the "Layout" pop-up menu, which includes a "truncate" item, and the "Uses Single Line Mode" checkbox just below. From the docs, I think the single line mode might ignore the Layout settings. The same IB controls are of course available in the text field in the cell view in a view-based table view. The methods underlying these settings are in NSCell. You can control trucation behavior in an NSTextView by using NSTextStorage, which is a subclass of NSMutableAttributedString. The truncation methods are in NSParagraphStyle). -- Bill Cheeseman - [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
