You can subclass the text view and returned an origin point from - (NSPoint)textContainerOrigin. This will give you origin.x +inset.width on the left and just inset.width on the right when used in conjunction with setTextContainerInset.

->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

[EMAIL PROTECTED]
740.590.0009



On Apr 18, 2008, at 11:44 AM, Ferhat Ayaz wrote:
Hi,

how would I go about setting NSTextView up so its insets are dx1 from the left and dx2 from the right side? I guess setTextContainerInset: will set for both left and right the same value (dx1 = dx2).

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to