From: Kevin W. <kw...@co...> - 2015-10-28 10:48:24
|
On 10/7/15 9:13 PM, Trevor Williams wrote: > Just a quick question to see if there are plans to add support for full-screen/half-screen support to Wish on El Capitan? I've installed 10.11 and have had a little time to play with the half-screen/full-screen API. Based on that, I'm going to rule out adding support for it in Tk. My "fullscreen" extension actually does implement some of this functionality--pushing the green window button makes the app fullscreen--but adding the half-screen support is going to be very difficult. The first version of the fullscreen package let Cocoa handle all the window resizing; this would make the half-screen implementation possible, as well. But it came at a cost: it was very hard to track window state from Tk, which would get confused about screen geometry, correct size of widgets, etc. The latest version of the extension overrides nearly all the Cocoa machinery and delegates the window resizing and management to Tk script level API's. Works much more smoothly (mostly by calling into wm attributes -fullscreen), but also would make the half-screen implementation pretty much impossible. Hope this helps, Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |