• 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: Text Layout problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Layout problems


  • Subject: Re: Text Layout problems
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 6 Mar 2006 11:12:41 -0800


On Mar 6, 2006, at 11:03 AM, Ben Lachman wrote:

I looked at these values and the containerOrigin.y does indeed change (to -10 in this case). The inset is 0,0 and never changes. The rect return by [layoutManager usedRectForTextContainer:textContainer] has an origin.y of 10. So apparently the layout manager is being smart and figuring out that it doesn't need that extra space and therefore resizing the text view accordingly. However, I don't want it to do this (and I don't particularly think this is very logical behavior) since I need an inset only at the top (and left side, but that isn't autoresized) of my text view and not the bottom.


The most obvious answer would be to override -[NSTextView textContainerOrigin] to return a constant value (it's the text view that does this calculation using information from the layout manager). I believe that should work, but I haven't tested it.


Douglas Davidson
_______________________________________________
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


References: 
 >Text Layout problems (From: Ben Lachman <email@hidden>)
 >Re: Text Layout problems (From: Douglas Davidson <email@hidden>)
 >Re: Text Layout problems (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: Text Layout problems
  • Next by Date: Re: retain/release question about Apple docs
  • Previous by thread: Re: Text Layout problems
  • Next by thread: problem with subclassing a cluster class
  • Index(es):
    • Date
    • Thread