Reputation: 231
I want to find count of monitor in mac OS by Cocoa.I can not use carbon.This code written in carbon but i want to do it in Cocoa framework.
CGDisplayCount dspCount;
CGError err ;
err = CGGetActiveDisplayList(0, NULL, &dspCount);
return (int)dspCount;
Upvotes: 2
Views: 878