• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: NSLayoutManager question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >RE: NSLayoutManager question (From: "Jonathan E. Jackel" <email@hidden>)

  • Prev by Date: Default project location
  • Next by Date: Re: NSLayoutManager question
  • Previous by thread: RE: NSLayoutManager question
  • Next by thread: RE: NSLayoutManager question
  • Index(es):
    • Date
    • Thread