> 
> python -c 'import AppKit ; print 
> AppKit.NSScreen.screens()[0].frame().size.width'
> 


Thanks a million! that even works for multi-monitor setups correctly.


>> tells me the resolution of the screen in the same units (of course) as
> 
> This will not work if you have multiple monitors attached.
> 

Thanks a lot for the hint - you are right, of course.

Best, G.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to