Re: Points vs pixels in a bash script

2020-06-08 Thread Ken Thomases via Cocoa-dev
Except that Apple specifically says they're not. From High Resolution Guidelines for OS X

Re: Points vs pixels in a bash script

2020-06-08 Thread Jeff Younker via Cocoa-dev
Just as an aside, points are not Apple-specifc. They are a typesetting unit equivalent to 1/72 of an inch. It's the same unit used for font sizes. -jeff On Mon, Jun 8, 2020 at 2:43 PM Gabriel Zachmann via Cocoa-dev < cocoa-dev@lists.apple.com> wrote: > I know this mailing list might not be the

Re: Points vs pixels in a bash script

2020-06-08 Thread Carl Hoefs via Cocoa-dev
Note that your AppleScript returns the size of ALL monitors combined. With four 1920x1080 monitors in a 2x2 arrangement it shows: 0, 0, 3840, 2160 -Carl > On Jun 8, 2020, at 3:44 PM, Marco S Hyman via Cocoa-dev > wrote: > > Using >> system_profiler SPDisplaysDataType >> I can retrieve

Re: Points vs pixels in a bash script

2020-06-08 Thread Steve Christensen via Cocoa-dev
I don’t have an answer for your question, and I know that this doesn’t actually answer it below, but it may still provide some info to help you move forward. The windowing system is always working in points from a coordinates point of view. So window.frame and view.frame are in points, not

Re: Points vs pixels in a bash script

2020-06-08 Thread Marco S Hyman via Cocoa-dev
Using > system_profiler SPDisplaysDataType > I can retrieve the size of a Mac's display in pixels. > > However, the command > > tell application "System Events" to get the size of every window of every > process tell application “Finder” set screen_resolution to bounds of window of

Re: Points vs pixels in a bash script

2020-06-08 Thread Ken Thomases via Cocoa-dev
On Jun 8, 2020, at 4:43 PM, Gabriel Zachmann via Cocoa-dev wrote: > > I have a problem converting points (I think) to pixels in a bash script. > I'd rather not write an extra C/Cocoa utility for that. > > Using > system_profiler SPDisplaysDataType > I can retrieve the size of a Mac's display

Re: Points vs pixels in a bash script

2020-06-08 Thread Rob Petrovec via Cocoa-dev
I don’t have an answer to your question, but to add some clarity Points are scale factor independent unit of measurement. On a retina display there are 2 pixels per point. On a non-retina display there is 1 pixel per point. Say Apple comes out with a display with a scale factor of 17. That

Points vs pixels in a bash script

2020-06-08 Thread Gabriel Zachmann via Cocoa-dev
I know this mailing list might not be the perfect fit for my question, but maybe someone has an idea. I have a problem converting points (I think) to pixels in a bash script. I'd rather not write an extra C/Cocoa utility for that. Using system_profiler SPDisplaysDataType I can retrieve the

Re: Relieving memory pressure

2020-06-08 Thread Alex Zavatone via Cocoa-dev
> On Jun 7, 2020, at 3:15 PM, Steve Christensen via Cocoa-dev > wrote: > > For slide shows that I’ve seen, they typically display each image for several > seconds at a time. If that’s the case, why can’t you just load the next image > from disk on a background queue while the current image