Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about nslayoutmanager

Read more about nslayoutmanager

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - nslayoutmanager

Scrollable NSTextView with custom NSTextStorage for formatting

I'm trying to make a text editor with formatting for Mac OS. Which I have working using an NSTextView together with a custom NSTextStorage class. Which applies attributes like bold etc to NSAttributab...
test-img

Matthijn

swift

nstextview

nsscrollview

nslayoutmanager

nstextstorage

Votes: 0

Answers: 1

Latest Answer

You can actually create the NSScrollView instance with scrollableTextView() and you can get the implicitly created documentView (NSTextView). Finally, one can assign the existing LayoutManager of the ...
test-img

Stephan Schlecht

Drawing outside content insets with drawGlyphsForGlyphRange

I'm trying to show some extra symbols next to lines in NSTextView, based on text attributes. I have successfully subclassed NSLayoutManager, but it seems that layout manager can't draw outside the are...
test-img

Tritonal

objective-c

cocoa

appkit

nstextview

nslayoutmanager

Votes: 0

Answers: 1

Latest Answer

The answer was much more simple than I anticipated. You can set lineFragmentPadding for the associated NSTextContainer to make more room for drawing in the margins. This has to be taken into account w...
test-img

Tritonal

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved