• 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: NSTextView and NSTextContainer size & clipping area
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView and NSTextContainer size & clipping area


  • Subject: Re: NSTextView and NSTextContainer size & clipping area
  • From: Ross Carter <email@hidden>
  • Date: Sat, 07 May 2011 21:53:23 -0400

We need to see your code. In general, any drawing code after the call to super in the textView's drawRect method will draw. But maybe you are trying to do something different.


On May 7, 2011, at 3:13 AM, Дмитрий Николаев wrote:

> But when i try draw a line in NSTextView, it limited to frame of text container too.
>
> 06.05.2011, в 22:56, Ross Carter написал(а):
>
>> On May 6, 2011, at 2:40 AM, Дмитрий Николаев wrote:
>>
>>> If there are any possibility to draw inside text view but outside of text container ?
>>
>> It depends on who is doing the drawing. NSTextView is an NSView subclass and you can override drawRect: just like any NSView. The Cocoa text system, however, draws inside the area specified by a NSTextContainer.
>
>

_______________________________________________

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

  • Follow-Ups:
    • Re: NSTextView and NSTextContainer size & clipping area
      • From: Дмитрий Николаев <email@hidden>
References: 
 >NSTextView and NSTextContainer size & clipping area (From: Дмитрий Николаев <email@hidden>)
 >Re: NSTextView and NSTextContainer size & clipping area (From: Ross Carter <email@hidden>)
 >Re: NSTextView and NSTextContainer size & clipping area (From: Дмитрий Николаев <email@hidden>)

  • Prev by Date: Getting NSWindow's contentBorderThickness working on a transparent window
  • Next by Date: Re: drawing onto CVPixelBuffer
  • Previous by thread: Re: NSTextView and NSTextContainer size & clipping area
  • Next by thread: Re: NSTextView and NSTextContainer size & clipping area
  • Index(es):
    • Date
    • Thread