objective c - How to find monitor count in mac os by Cocoa? -
i want find count of monitor in mac os cocoa.i can not use carbon.this code written in carbon want in cocoa framework.
cgdisplaycount dspcount; cgerror err ; err = cggetactivedisplaylist(0, null, &dspcount); return (int)dspcount;
Comments
Post a Comment