Giter Club home page Giter Club logo

Comments (9)

cloudkite avatar cloudkite commented on August 24, 2024

Thanks for bringing this to my attention. I didn't know this limitation existed in Mac. I will have a think about it and try fix it for the next release.

from masonry.

kasperkronborg avatar kasperkronborg commented on August 24, 2024

Hi,

I went through some of my old projects and saw that it's really an edge case, where I use a NSTextView without wrapping it inside a NSScrollView. Maybe before you look further into this issue, you should consult with some other developers who are more familiar with OSX programming. For now I can wrap it inside a NSScrollView, even don't I really don't need the scroll view.

Just mentioning, cause this might not be an issue at all.

from masonry.

cloudkite avatar cloudkite commented on August 24, 2024

Cool closing for now. I'm not an mac developer so don't know what the appropriate solution is.
If any OSX devs want to chime in on an elegant solution we can reopen.

from masonry.

jhoughjr avatar jhoughjr commented on August 24, 2024

Would be nice if this worked for NSTextViews. I kinda need it and it seems silly to clutter the view hierarchy..

from masonry.

schwers-zz avatar schwers-zz commented on August 24, 2024

I agree, this would be a very nice bug fix, and wrapping in a scrollview seems very kludgy

from masonry.

akinsey avatar akinsey commented on August 24, 2024

+1

from masonry.

hamin avatar hamin commented on August 24, 2024

@cloudkite @kasperkronborg on mac you can't use weak references to NSTextView. Use assign instead. Here's a reference http://zpasternack.org/some-objects-dont-support-weak-references/

from masonry.

jhoughjr avatar jhoughjr commented on August 24, 2024

I think if Masonry did a check for isMemberOfClass and then used an assigned property that would be a solution, From the front end side though you either must use strong, or ensure it's added as a subview before assigning it, since it would otherwise not be retained.

from masonry.

kasperkronborg avatar kasperkronborg commented on August 24, 2024

@hamin That's what initially caused the issue. If you read my first post, I write that it is because you can't create weak references to NSTextView that Masonry crashes the app.

from masonry.

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.