Hi James,

check out the -screen method of NSWindow. this should return to you exactly what you are looking for.

later,

douglas

On Jul 10, 2008, at 2:32 AM, James Sheridan wrote:


Hi All,

I'm building a custom app with a QCRenderer and am having a small issue with passing the mouse coordinates when my viewer is in full screen mode on a second display. The problem is I need to offset the coordinates by location of the second screen but I'm not sure how to find out the screen position for the display im fullscreen on.

I can find screen positions and sizes using NSSreen but I have no way of knowing which one im displaying on since I use CGGetDisplaysWithPoint (using the position of the visualizer window before I go full screen) to get a CGDirectDisplayID. I can use this dissplay id to create a full screen opengl context and to find out the screen width and height but not position.

How can I find out which NSScreen object a window or CGDirectDisplayID belongs to?

Regards - James

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to