• 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
Re: setTextContainerInset with different values for left and right
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setTextContainerInset with different values for left and right


  • Subject: Re: setTextContainerInset with different values for left and right
  • From: Ferhat Ayaz <email@hidden>
  • Date: Fri, 18 Apr 2008 23:09:38 +0200

thank you! Works great.

On Apr 18, 2008, at 8:17 PM, Ben Lachman wrote:

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@hidden
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).



Ferhat

http://www.thinkcocoa.com





_______________________________________________

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


References: 
 >setTextContainerInset with different values for left and right (From: Ferhat Ayaz <email@hidden>)
 >Re: setTextContainerInset with different values for left and right (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: Capsule-Style Toolbar Controls
  • Next by Date: Re: NSBundle loadNib creates extra NSMenuItem
  • Previous by thread: Re: setTextContainerInset with different values for left and right
  • Next by thread: NSTableView -editColumn:row:withEvent:select: question
  • Index(es):
    • Date
    • Thread