On 07/06/2012, at 9:23 PM, Gregory Weston wrote: > Does anyone know of existing code or a trivial technique to get a CGPath or > NSBezierPath that describes the shape of the desktop? I'll write and share it > if it's not out there, but I'd rather not reinvent any wheels. My interests > are: > > 1. It should be the actual perimeter of the desktop, not just the bounding > box. > 2. It should be a single polygon, rather than a collection of rectangles. > 3. It should behave properly in the presence of mirrored displays.
Just iterate over the list of NSScreens and append each screen rect to a bezier path. --Graham _______________________________________________ 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