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

NSLayoutManager subclassing


  • Subject: NSLayoutManager subclassing
  • From: Rachel Blackman <email@hidden>
  • Date: Wed, 18 Jan 2006 17:36:50 -0800

I find myself with a situation where I need NSTextView to behave a bit differently than usual.

Specifically, I need it to work that the document is -- in effect, bottom-aligned ('valign=bottom' in HTML terms). So that if you have only one line, instead of a single line of text at the top, you have a single line of text at the bottom of the view. Adding lines will still appear at the bottom, scrolling up the lines before them, but the entire thing remains bottom-aligned.

I've been looking at NSLayoutManager and NSTextContainer as what I need to subclass and tweak to do this, and at first it seemed promising, but the documentation is a little unclear in places; I'm no longer actually certain I /can/ do this properly with them, as opposed to having to actually modify NSTextView itself.

Any thoughts?

--
Rachel 'Sparks' Blackman -- sysadmin, developer, mad scientist
"If it is not broken, give me five minutes to redesign it!"

_______________________________________________
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: Douglas Davidson <email@hidden>
    • Re: NSLayoutManager subclassing
      • From: "I. Savant" <email@hidden>
  • Prev by Date: CoreData and NSPasteboard for
  • Next by Date: Re: Two questions about NSCalendar
  • Previous by thread: Re: CoreData and NSPasteboard for
  • Next by thread: Re: NSLayoutManager subclassing
  • Index(es):
    • Date
    • Thread