• 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
Vertically-expanding NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Vertically-expanding NSTextField


  • Subject: Vertically-expanding NSTextField
  • From: Andrew Bowman <email@hidden>
  • Date: Wed, 10 May 2006 23:25:23 -0700

Hey all,

The best example of what I'm after is the text field in iChat windows (thus advice from iChat developers at Apple would be more than welcome). Word wrapping occurs automatically, and the height of the text field expands or contracts as needed while type or when the window is resized.

I'd like to get the appropriate code to fit nicely into a method which can be called from the textDidChange and viewDidEndLiveResize methods of an NSTextField subclass. I'd like to avoid using a scroll view if possible.

Aspects of this topic have been covered previously on cocoa-dev and at cocoadev.com, but I've never been able to get any of the solutions to work properly. Suggestions, tested code snippets, and your patience are all appreciated.


Cheers, Andrew Bowman _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Vertically-expanding NSTextField
      • From: Andrew Bowman <email@hidden>
    • Re: Vertically-expanding NSTextField
      • From: Brian Ganninger <email@hidden>
    • Re: Vertically-expanding NSTextField
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Problem creating binding for deployment
  • Next by Date: Re: Objective-C Framework for XML-RPC
  • Previous by thread: Re: Problem creating binding for deployment
  • Next by thread: Re: Vertically-expanding NSTextField
  • Index(es):
    • Date
    • Thread