• 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: TextView Autoresizing Mask problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextView Autoresizing Mask problems


  • Subject: Re: TextView Autoresizing Mask problems
  • From: Nik Youdale <email@hidden>
  • Date: Thu, 26 Jan 2006 10:02:41 +1100

Yep, tried that. Thats not the issue though. If i replace the textView with some other view, it resizes fine. It appears that there is something wrong with the way the textView autoresizes itself, when both width and height re-sizing is enabled. I dont understand, because a textView will resize perfectly if you add one in IB.

- Nik

On 25/01/2006, at 11:39 PM, Michael Nickerson wrote:




On Jan 24, 2006, at 11:21 PM, Nik Youdale wrote:



Hey,

I have run into a problem with a textView that i have created in one of my custom views. It appears that if i set the autoresizing mask on the textView to resize both vertically and horizontally, there is some very unexpected behavior when resizing. It resizes just fine as expected if only vertical resizing is enabled, or if only horizontal resizing is enabled, but as soon as i put both together, the textView flies up vertically out of my view never to be seen again, when the view is resized. I have tested the same code with other views, and they resize as expected.

- Nik




Is the view you're adding the text view as a subview to also set to resize? You can also try -setAutoresizesSubviews: with an argument of YES on the super view.


Darkshadow (aka Michael Nickerson)







_______________________________________________ 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
  • Prev by Date: Re: NSTextView: How do you allow highlighted (selected) areas to change vs the ENTIRE view?
  • Next by Date: ToolBar Icons not sorted
  • Previous by thread: Re: [SOLVED] TextView Autoresizing Mask problems
  • Next by thread: How to find the fwrite() error
  • Index(es):
    • Date
    • Thread