Giter Club home page Giter Club logo

Comments (7)

indragiek avatar indragiek commented on July 18, 2024

I've come across issues like this before, and the workaround seems to be to register the view for notifications for NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification and then call setNeedsDisplay:YES when those notifications are received. What we could do is register for the notifications for the title bar view only, and then iterate through all its subviews recursively and redraw everything. I can give this a try if I have some time, or you could go ahead and try it and let me know if it works.

from inappstorewindow.

kgn avatar kgn commented on July 18, 2024

We may need to recurse through the subviews but I don't think we need the notifications as we already override all the window state change methods: https://github.com/indragiek/INAppStoreWindow/blob/master/INAppStoreWindow.m#L316

from inappstorewindow.

indragiek avatar indragiek commented on July 18, 2024

Oh yeah, forgot about that. Then yeah all we'd need to do is just recurse the subviews in those notification callbacks.

from inappstorewindow.

indragiek avatar indragiek commented on July 18, 2024

Tried recursively calling -setNeedsDisplay: on the subviews but it didn't work, I think there must be a different flag that needs to be set although not sure what that would be.

from inappstorewindow.

js avatar js commented on July 18, 2024

I'm not sure why I didn't try the approach in pull request #61 right away, but I initially thought that it wouldn't allow the click-through (if the window was inactive) to work, but it certainly seems to.

from inappstorewindow.

indragiek avatar indragiek commented on July 18, 2024

I thought of the same approach and didn't suggest it for the same reasons
but if it works that's awesome! I'll take a look at the pull request soon.

Sent from my iPhone

On 2012-08-29, at 3:21 AM, "Johan Sørensen" [email protected]
wrote:

I'm not sure why I didn't try the approach in pull request
#61https://github.com/indragiek/INAppStoreWindow/issues/61right
away, but I initially thought that it wouldn't allow the
click-through (if the window was inactive) to work, but it certainly seems
to.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/59#issuecomment-8119642.

from inappstorewindow.

indragiek avatar indragiek commented on July 18, 2024

Works great.

from inappstorewindow.

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.