Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Determine multiple display layout via bash script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Determine multiple display layout via bash script
Authored by: cluthi on Feb 19, '09 02:03:11AM
Let's post yet another code that do the same thing.
    NSUInteger i;
    for (NSScreen *screen in [NSScreen screens])
    {
        NSSize size = [screen frame].size;
        NSPoint origin = [screen frame].origin;
        printf("Display Unit %d: %g x %g is positioned at (%g, %g)n", i++, size.width, size.height, origin.x, origin.y);
    }


[ Reply to This | # ]