NSLayoutManager subclassing
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