From: Kevin W. <kw...@co...> - 2013-03-19 13:51:38
|
Anyone running, or developing, their Tk apps with a HiDPI screen (Retina display)? I'm beginning to update my apps with an eye toward the Retina display, but I don't have the hardware (nor any way to emulate on my current setup). I'm especially interested in knowing what effect the Retina display has on things like images on buttons and labels. I have a few ideas on how to make images play nice in Tk in Retina displays (the ::tk::mac::iconBitmap command provides the necessary hooks into NSImage, I believe), but I'd like to see what others are running into. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |
From: Wojciech K. <woj...@ko...> - 2013-03-19 15:02:11
|
>From what I know you can emulate HiDPI displays in a regular Mac: http://stackoverflow.com/questions/12124576/how-to-simulate-a-retina-display-hidpi-mode-in-mac-os-x-10-8-mountain-lion-on Not sure if you first need to update to 10.8, though. 2013/3/19 Kevin Walzer <kw...@co...>: > Anyone running, or developing, their Tk apps with a HiDPI screen (Retina > display)? I'm beginning to update my apps with an eye toward the Retina > display, but I don't have the hardware (nor any way to emulate on my > current setup). I'm especially interested in knowing what effect the > Retina display has on things like images on buttons and labels. I have a > few ideas on how to make images play nice in Tk in Retina displays (the > ::tk::mac::iconBitmap command provides the necessary hooks into NSImage, > I believe), but I'd like to see what others are running into. > > -- > Kevin Walzer > Code by Kevin/Mobile Code by Kevin > http://www.codebykevin.com > http://www.wtmobilesoftware.com > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |
From: Jeff H. <je...@ac...> - 2013-03-19 16:58:27
|
On 2013-03-19, at 6:51 AM, Kevin Walzer <kw...@co...> wrote: > Anyone running, or developing, their Tk apps with a HiDPI screen (Retina > display)? I'm beginning to update my apps with an eye toward the Retina > display, but I don't have the hardware (nor any way to emulate on my > current setup). I'm especially interested in knowing what effect the > Retina display has on things like images on buttons and labels. I have a > few ideas on how to make images play nice in Tk in Retina displays (the > ::tk::mac::iconBitmap command provides the necessary hooks into NSImage, > I believe), but I'd like to see what others are running into. FWIW I have an rMBP and Tk does look somewhat pixelated. I suppose the icons might also be pixelated, but you don't notice it as much. I've attached a TDK screenshot where you can see some of this. Jeff |
From: Kevin W. <kw...@co...> - 2013-03-21 13:33:32
|
On 3/19/13 11:18 AM, Jeff Hobbs wrote: > > FWIW I have an rMBP and Tk does look somewhat pixelated. I suppose the > icons might also be pixelated, but you don't notice it as much. I've > attached a TDK screenshot where you can see some of this. The text can be made Retina-friendly with a new key in the app's Info.plist file: <key>NSHighResolutionCapable</key> <true/> CoreText provides the HiDPI hooks out of the box. The other trick mentioned on-list, from SO, doesn't seem to work if you're on Lion. Bummer. When I get the app I'm working on a bit further along, I may post a request for testing from someone with a Retina Mac. My interest here is documenting best practices for Tk apps in this brave new world, and I will do so. A related technical question: my theory that the tk::mac::iconBitmap command is the way to go is untested, but it provides direct access to the NSImage API's that are in effect here. Standard Tk images do not. However, I noticed that TkImg at some point added support for multi-file TIF images in a single file--does anyone have experience with that? --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |
From: Jeff H. <je...@ac...> - 2013-03-21 18:02:17
|
On 2013-03-21, at 6:33 AM, Kevin Walzer <kw...@co...> wrote: > On 3/19/13 11:18 AM, Jeff Hobbs wrote: >> >> FWIW I have an rMBP and Tk does look somewhat pixelated. I suppose the >> icons might also be pixelated, but you don't notice it as much. I've >> attached a TDK screenshot where you can see some of this. > > The text can be made Retina-friendly with a new key in the app's Info.plist file: > > <key>NSHighResolutionCapable</key> > <true/> > > CoreText provides the HiDPI hooks out of the box. I've seen that trick, but it does not work on TDK apps from my experience (which have an Info.plit for tclapp.app, but also call out to tdkbase.app). I've modified both to no avail, even forcing the rebuild of the Info.plist cache (via renaming). > A related technical question: my theory that the tk::mac::iconBitmap command is the way to go is untested, but it provides direct access to the NSImage API's that are in effect here. Standard Tk images do not. However, I noticed that TkImg at some point added support for multi-file TIF images in a single file--does anyone have experience with that? Not me. Jeff |