Text View with fixed width
Text View with fixed width
- Subject: Text View with fixed width
- From: "Aleksandro Eterverda" <email@hidden>
- Date: Sat, 20 Sep 2008 02:42:28 +1100
Hi
I'm new to this list and I'm completly new to Cocoa. I'm creating my
first app but I stuck with the following.
I have an instance of NSTextView (created with Interface Builder) in
an instance of NSScrollView. I want text to be layed out in area of
fixed width (length should be as it is - unlimited). And I want this
area to stay in the middle of scroll view. For example 500 px. wide,
250 px. from right and 250 px. from left for 1000 px. wide scroll
view. And I also would like to have text justified in that 500 px.
If you ever tried WriteRoom you'll know what I mean.
I tried to call [textView setTextConrainerInset:] but it's not what I
want. I don't like to control insets by myself when resizing window (I
often resize it programmatically with animation especially in my full
screen implementation).
Is it possible? Could you please help me with some snippet or something alike?
Thank you.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden