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

Re: NSLayoutManager subclassing


  • Subject: Re: NSLayoutManager subclassing
  • From: Rachel Blackman <email@hidden>
  • Date: Thu, 19 Jan 2006 10:07:19 -0800

What you *could* try (I have not tired this myself) is enclosing the text view inside another plain view without a flipped coordinate system, then put *that* in the scroll view. You'll have to make your enclosing view listen for frame changes in the NSTextView (so it can grow or shrink to fit the text view). You'll also probably have to adjust a few other things (the views' autoresizing masks for sure, perhaps some other things), but it shouldn't take too much effort to try it.

Interesting thought. I'd need to subclass NSTypesetter and flip the text too, I think. Because, basically, it needs to be, when only one line of text is in there:


|
|
|
|
|
|Look, Ma, a line of text
+------------------------

...and then if you add another line...

|
|
|
|
|Look, Ma, a line of text
|And another!
+------------------------

_______________________________________________
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: NSLayoutManager subclassing
      • From: glenn andreas <email@hidden>
References: 
 >NSLayoutManager subclassing (From: Rachel Blackman <email@hidden>)
 >Re: NSLayoutManager subclassing (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Office 2003 (Windows) style menus
  • Next by Date: Re: NSLayoutManager subclassing
  • Previous by thread: Re: NSLayoutManager subclassing
  • Next by thread: Re: NSLayoutManager subclassing
  • Index(es):
    • Date
    • Thread