Git Product home page Git Product logo

Comments (3)

tsfischer avatar tsfischer commented on August 15, 2024

I should have mentioned: MacOS 10.14

from cocoamarkdown.

tsfischer avatar tsfischer commented on August 15, 2024

I found a workaround... we were using an NSTextField, which causes the above issue. Switching it to an NSTextView makes it render correctly, as in the example app. Not sure why this would matter but I'm past my problem now at least.

from cocoamarkdown.

jlj avatar jlj commented on August 15, 2024

Actually NSTextField should not be used for markdown-related attributed string display because a text field is a NSControl intended for text entry, so it has a number of limitations compared to NSTextView.

According to Apple Developer Documentation:

The Field Editor

The field editor is a single NSTextView object that is shared among all the controls, including text fields, in a window. This text view object inserts itself into the view hierarchy to provide text entry and editing services for the currently active text field. When the user shifts focus to a text field, the field editor begins handling keystroke events and display for that field. Figure 4-3 illustrates the field editor in relation to the text field it is editing.

Figure 4-3 The field editor
Figure 4-3  The field editor

@tsfischer Can you therefore close this issue?

from cocoamarkdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.