getting a bit outside the scope of this list, but if you take that code snippet and simple remove the if...then part and just use

renderScreen = [NSScreen mainScreen];

it will only affect the main screen.

On Mar 9, 2008, at 3:17 PM, Steven Sokulski wrote:

Rather than automatically place this automatically onto the second available screen I am looking for a way to merely take it full screen on the current screen. When I place the window on the primary monitor and press the full screen button it should become full screen on that monitor. If I place that window on a secondary screen and press full screen it should go full screen there.

This seems to be the behavior exhibited by the full screen button in QC right now and seems it would fit my current application better.

Thanks for any thoughts anybody has on how to do this.

On Mar 9, 2008, at 12:12 PM, Eric Redlinger wrote:


You'll need to implement this in the cocoa layer. On 10.4 you'll have to change the rect of the window containing your QCView. On 10.5 there is a convenience method which makes the process even easier:

NSView * theViewContainingMyQCRenderer;
NSScreen * renderScreen;

        if ([[NSScreen screens]count]>1)             //see if second screen 
exists
        {
                renderScreen = [[NSScreen screens] objectAtIndex:1] ;
        }
        else renderScreen = [NSScreen mainScreen];


[theViewContainingMyQCView enterFullScreenMode:renderScreen withOptions:nil];

or...

[theViewContainingMyQCView exitFullScreenModeWithOptions:nil];


On Mar 9, 2008, at 11:09 AM, Steven Sokulski wrote:

I am unsure if this is the right place to post this. I'm a member of the Xcode mailing list as well, but my questions seems to deal more with QC and Interface Builder.

I am trying to replicate the Full Screen button found on the toolbar of the Viewer window of Quartz Composer so that QCview contained in the window will display as fullscreen whenever the button is pressed and then deactivate when the escape key is tapped. How would I go about doing this? If I should be asking somewhere else please let me know.

Thanks.

Steven Sokulski _______________________________________________
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/eric%40ecumedesjours.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
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/eric%40ecumedesjours.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
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