indragiek/INAppStoreWindow — pull request #125 by macguru (2013-09-26 11:17:19+00:00)
Title: Private content view class to speed up window resizing.

In sampling the resizing performance of my app, I saw that a huge part of performance went down by NSWindow setting the "usual" content view size first only for INAppStoreWindow to reposition the content view later. This caused multiple invalidations of layout constraints and display states to happen.

I somewhat circumvent the problem by building a custom content view class that corrects frame set by the window and by that alleviates the need for INAppStore to "fix" the frame.

This patch lazily modifies the content view passed to the window and by that does not require any change of using INAppStoreWindow. It also preserves compatibility with non-NSView content view classes, where is falls back to the previous method.