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

Re: Vertically-expanding NSTextField


  • Subject: Re: Vertically-expanding NSTextField
  • From: Brian Ganninger <email@hidden>
  • Date: Thu, 11 May 2006 15:24:48 -0500

Although the codebase isn't exactly small or quick to sort through, Adium (http://www.adiumx.com) has such a textfield and is open source, so you can fully peruse the code that makes this happen.

On May 11, 2006, at 1:25 AM, Andrew Bowman wrote:

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:
40mac.com


This email sent to email@hidden

_______________________________________________ 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>
References: 
 >Vertically-expanding NSTextField (From: Andrew Bowman <email@hidden>)

  • Prev by Date: Re: Vertically-expanding NSTextField
  • Next by Date: Re: Continuing woes with NSMutableURLRequest -- how to file bug report?
  • Previous by thread: Re: Vertically-expanding NSTextField
  • Next by thread: Re: Vertically-expanding NSTextField
  • Index(es):
    • Date
    • Thread