Re: Confusion about screen resolution

2020-02-22 Thread Ken Thomases via Cocoa-dev
On Feb 22, 2020, at 9:02 AM, Gabriel Zachmann via Cocoa-dev wrote: > >> >> No, the default on recent Macs is scaled to slightly under 2x. >> > > It is about ~ 1.7 . > > this means that every view has to be scaled by this odd factor, before > writing its contents into the frame buffer. > I

Re: Confusion about screen resolution

2020-02-22 Thread Ken Thomases via Cocoa-dev
On Feb 22, 2020, at 2:48 PM, Rick Aurbach via Cocoa-dev wrote: > > I think you are confusing pixels and points. > > A pixel is an addressable light-emitting area on the screen. Your screen > contains 2880 X 1800 pixels. > > But a typographical point is a unit of distance. There are [72]

Re: Detect when a process has stopped responding?

2019-12-30 Thread Ken Thomases via Cocoa-dev
On Dec 30, 2019, at 3:19 PM, James Walker via Cocoa-dev wrote: > > Some Apple utilities such as Activity Monitor can detect when a process has > stopped responding to events. Is there any way to do that using public APIs? You might be able to do it by sending the process in question an

Re: NSTimer +timerWithTimeInterval:

2020-04-29 Thread Ken Thomases via Cocoa-dev
Does this happen only when launched from Xcode, or also when launched normally? Does this happen with a different user account? Does it happen when run on another Mac? -Ken > On Apr 29, 2020, at 4:35 PM, Carl Hoefs via Cocoa-dev > wrote: > > There are no extensions or categories in the

Re: [OT] Re: NSTimer +timerWithTimeInterval:

2020-04-29 Thread Ken Thomases via Cocoa-dev
On Apr 29, 2020, at 5:27 PM, Sandor Szatmari via Cocoa-dev wrote: > >> On Apr 29, 2020, at 17:12, Alex Zavatone via Cocoa-dev >> wrote: >> >> Not sure about this, but in Objective-C, you’re not supposed to start >> methods with new. > > I’ve always operated under the premise that using a

Re: Confusion about System Preferences

2020-07-09 Thread Ken Thomases via Cocoa-dev
On Jul 9, 2020, at 3:41 AM, Gabriel Zachmann via Cocoa-dev wrote: > > I am confused about the way system preferences are organized (or preferences > in general). > > I read the man page of defaults(1), but it is still unclear to me what happens > when I do, for instance, > > defaults

Re: Points vs pixels in a bash script

2020-06-10 Thread Ken Thomases via Cocoa-dev
On Jun 9, 2020, at 8:11 AM, Gabriel Zachmann wrote: > >> In particular, you're not taking into account the current screen resolution >> (a.k.a. display mode). The user can select different scaling for a Retina >> display in System Preferences > Displays. > > Good point. > I wasn't taking

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 Ken Thomases via Cocoa-dev
Except that Apple specifically says they're not. From High Resolution Guidelines for OS X