"Word Wrap" and "Character Wrap" in NSTextField
"Word Wrap" and "Character Wrap" in NSTextField
- Subject: "Word Wrap" and "Character Wrap" in NSTextField
- From: Jerry Krinock <email@hidden>
- Date: Sun, 5 Apr 2009 22:37:56 -0700
I have an NSTextField, instantiated in Interface Builder 3. In
Interface Builder's Inspector > Attributes I've set:
Text Field > Layout (popup) > Wraps
Control > Line Breaks (popup) > Word Wrap
The value binding is bound. The font size in the text field is 11
point, and its height is 45 points, enough to fit three lines.
I expect that when the string provided by the model is bigger than can
fit on one line, it should wrap to the next line, but instead it is
clipped at the right edge of the first line. The second and third
lines are never drawn. Same thing happens if I type into the field
(it's editable) -- text just fall off at the right edge.
I get the same result if I set the Line Breaks popup to Character
Wrap. There is none of my code touching this NSTextField; it's all
xib and bindings.
In the list archives, I see several similar issues and confirmed bugs
in past years, but nothing quite like this. It looks like it "just
doesn't work".
Is there something else I need to do?
Thanks
Jerry Krinock
_______________________________________________
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