Comments (7)
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.
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.
Oh yeah, forgot about that. Then yeah all we'd need to do is just recurse the subviews in those notification callbacks.
from inappstorewindow.
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.
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.
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.
Works great.
from inappstorewindow.
Related Issues (20)
- when click minButton to hidden the window, then reopen,move mouse to traffic button and remove mouse, the traffic button always show RollOverImage
- Exit full screen mode in Yosemite HOT 7
- dragging to another virtual desktop is not working
- window frame.height grows from start to start if autosave name is not empty, OS X 10.9.3
- README needs update
- setMovable flag doesn't work
- Box behind title Xcode 6.1 GM HOT 2
- Yosemite double click title bar to maximum window not working HOT 1
- Cocoa pod can't find INAppStoreWindow 1.5
- bad window button positioning on Yosemite HOT 4
- TitleTextColor changes only the Window Title !
- bad way to detect yosemite
- crash, creating window from code inherit INAppStoreWindow 10.10.1 HOT 3
- Window widgets are positioned incorrectly in document-based application when showing sheets HOT 2
- Graphite system appearance appears to be ignored
- Where do I start HOT 1
- AppleMiniaturizeOnDoubleClick Isn't working HOT 2
- Window flicker when drag in the original titlebar area and move to top of the screen
- Traffic light buttons HOT 2
- Every Time At the time of Launch : NSWindow warning: adding an unknown subview: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inappstorewindow.