Re: Updating tk +quartz failed on Snow Leopard

2016-08-25 Thread Ken Cunningham
On 2016-08-25, at 8:20 PM, Kevin Walzer wrote: > On 8/25/16 10:02 PM, Ryan Schmidt wrote: >> I just haven't researched whether one is supposed to use >> MAC_OS_X_VERSION_MIN_REQUIRED or MAC_OS_X_VERSION_MAX_ALLOWED or >> __MAC_OS_X_VERSION_MAX_ALLOWED or something else. > Can someone try someth

Re: Updating tk +quartz failed on Snow Leopard

2016-08-25 Thread Kevin Walzer
On 8/25/16 10:02 PM, Ryan Schmidt wrote: I just haven't researched whether one is supposed to use MAC_OS_X_VERSION_MIN_REQUIRED or MAC_OS_X_VERSION_MAX_ALLOWED or __MAC_OS_X_VERSION_MAX_ALLOWED or something else. Can someone try something like this: #if MAC_OS_X_VERSION_MIN_REQUIRED < 1070 [

Re: Updating tk +quartz failed on Snow Leopard

2016-08-25 Thread Ryan Schmidt
August 25, 2016 11:14:37 AM PDT >> To: Mojca Miklavec >> Cc: k...@codebykevin.com >> Subject: Re: Updating tk +quartz failed on Snow Leopard >> >> also, this Apple document would appear to be of potential use: >> >> <https://developer.apple.c

Re: Updating tk +quartz failed on Snow Leopard

2016-08-25 Thread Joshua Root
On 2016-8-26 11:21 , Ryan Schmidt wrote: On Aug 25, 2016, at 11:38 AM, Ryan Schmidt wrote: tk isn't the first program to need to deal with Retina displays. Can we find any other program that uses NSWindow's backingScaleFactor selector and see how it handles it? I missed these warning from

Re: Updating tk +quartz failed on Snow Leopard

2016-08-25 Thread Ryan Schmidt
On Aug 25, 2016, at 11:38 AM, Ryan Schmidt wrote: > tk isn't the first program to need to deal with Retina displays. Can we find > any other program that uses NSWindow's backingScaleFactor selector and see > how it handles it? I missed these warning from the original post: warning: ‘NSWindow’

Re: Updating tk +quartz failed on Snow Leopard

2016-08-25 Thread Ryan Schmidt
> On Aug 25, 2016, at 5:44 AM, Mojca Miklavec wrote: > > Hi, > > I'm moving the discussion from the user mailing list to the developer > one, hoping to catch attention of more experienced developers there. > > To summarize. > > Tk fails to compile on Snow Lepard due to the following chunk of

Re: Updating tk +quartz failed on Snow Leopard

2016-08-25 Thread Mojca Miklavec
On 25 August 2016 at 12:44, Mojca Miklavec wrote: > > and tried to replace > scalefactor = ([[win backingScaleFactor] floatValue] == 2.0) ? 2 : 1; > with > scalefactor = ([win backingScaleFactor] == 2.0) ? 2 : 1; ... The other way around. Mojca

Re: Updating tk +quartz failed on Snow Leopard

2016-08-25 Thread Mojca Miklavec
Hi, I'm moving the discussion from the user mailing list to the developer one, hoping to catch attention of more experienced developers there. To summarize. Tk fails to compile on Snow Lepard due to the following chunk of code: MacDrawable *macDraw = (MacDrawable *) d; NSWindow *win = T