Re: Editing a multi-line NSTextField as a single line
Re: Editing a multi-line NSTextField as a single line
- Subject: Re: Editing a multi-line NSTextField as a single line
- From: Martin Wierschin <email@hidden>
- Date: Tue, 24 Feb 2009 17:37:05 -0800
When editing, I would like the editor which appears to edit this
text on just a single line and not do any wrapping.
I was able to accomplish this by doing:
[[textField cell] setLineBreakMode:NSLineBreakByClipping];
before I start the edit session.
However, I am curious (because I think it would help me understand
how the system works) how I could alter currentEditor to accomplish
the same thing.
Offhand I would guess one or both of the following:
1. The NSTextContainer for the current editor has been expanded to
infinite size.
2. The NSParagraphStyle applied to the editor's NSTextStorage has had
its line break mode changed.
~Martin
_______________________________________________
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