开发者

backporting NSWindowDelegates windowDidEndLiveResize behaviour in OSX 10.5?

开发者 https://www.devze.com 2022-12-16 01:44 出处:网络
While 10.6 introduced the neat - windowDidEndLiveResize: et al for NSWindowDelegate, i need similar behaviour in 10.5 to avoid constantly invoking heavier functions via - windowDidResi开发者_如何学编程

While 10.6 introduced the neat - windowDidEndLiveResize: et al for NSWindowDelegate, i need similar behaviour in 10.5 to avoid constantly invoking heavier functions via - windowDidResi开发者_如何学编程ze:.

Currently i can only think of a timer-based solution (i.e. checking in short intervals for when the last resize occured), which seems ugly.

Is there a better way to support that? Or at least a way to get the specific mouse-down/-up events on the resize control?


You can try querying the inLiveResize method from the content view of the window. When the window is resized, its content view is resized as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消