RE: NSLayoutManager question
RE: NSLayoutManager question
- Subject: RE: NSLayoutManager question
- From: Koen van der Drift <email@hidden>
- Date: Tue, 4 Feb 2003 10:18:25 -0500
At 5:14 PM -0500 2/3/03, Jonathan E. Jackel wrote:
If you were using a text field instead of a text view, I would say an
NSFormatter subclass is what you want. It's main benefit is to present the
information to the user in human-friendly format while allowing calculations
and other manipulations on the actual value. I don't think a text view will
take a formatter, but I could be wrong.
Would a text field work for you?
Using an NSFormatter would indeed be a good solution, so I looked
into this. However, an NSFormatter can only be used with an NSControl
or an NSCell.
So I tried an NSTextField. Problem is, the text field needs a
vertical scrollbar. In IB I made an NSTextField the subview of a
scroller. But when I run the app, the scrollbar does not respond when
the text goes outside the bounds/frame. Can I connect the two so the
text field behaves like an textview?
thanks,
- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.