Hello, Rimas

You can change the inset of the NSTextContainer associated with the
NSTextView for this purpose. See setTextContainerInset method of NSTextView.

2011/5/3 Rimas M. <apple.list...@gmail.com>

> Hello,
>
> I continue my fight with cocoa text system :)) At the moment I am loosing..
>
> Now I am trying to implement vertical text alignment in NSTextView. If
> I would need only drawing, would be quite easy. But I need to maintain
> an editing capability.
>
> The thing I am talking about is very similar (or even the same) to the
> text writing inside shape (rectangle) using Keynote: insert rectangle
> shape, double click it ant write some text. Using inspector (Text tab)
> you can choose between top, middle and bottom vertical alignment.
>
> I am almost sure, that I need to subclass and overwrite some stuff
> from either NSLayoutManager or NSATSTypesetter. Just not sure which
> exact... Any thoughts?
>
> Best Regards,
>
> Rimas M.
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/nosetinker%40gmail.com
>
> This email sent to nosetin...@gmail.com
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to