I can't quite tell if your comment is sincere or sarcastic and biting, so either way I will explain myself.

To use Eric's code you are going to have to write a Cocoa application. This isn't done in Quartz Composer, but is done by creating an application and putting your composition is side of it. This application is were you will put Erics Code. You asked for a tutorial on were to put his code, so I sent you a tutorial on how to make Quartz Composer Cocoa application, which is what I understand you are trying to do. If I am wrong please clarify so I can help you.

To be more direct in answering "were do I put this code". It depends. If you want to go full screen whenever a button is pushed you do the following:

- (IBAction)buttonPushed:(id)sender {
        // Here is were you put the code
}

- Sam


On Mar 9, 2008, at 5:09 PM, bernardo amorim wrote:

Jee thanks Mr Sam.
I was wondering where would i put mr eric Code.
Pardon me if my ignorance seem to have been misplaced here.

On Sun, Mar 9, 2008 at 9:50 PM, Sam McDonald <[EMAIL PROTECTED]> wrote:
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/QuartzComposer/qc_intro/chapter_1_section_1.html

-Sam

On Mar 9, 2008, at 3:08 PM, bernardo amorim wrote:

Can you please make a small tutorial for this please?
where do i put the code from Eric?
bernardo


On Sun, Mar 9, 2008 at 7:22 PM, vade <[EMAIL PROTECTED]> wrote:
Why not just use Quartz Composer then?

If you dont want to use Quart Composer you are going to have to take
it to Cocoa. If you want the screen the view is in, you can do:

NSScreen = [[MyNSView window] screen];

This asks the view what window its in, and asks that window what
screen it is in.

You can then use the code Eric posted below to enterFullScreen or
exitFullScreen.

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/doktorp%40mac.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/bernardo.amorim%40gmail.com

This email sent to [EMAIL PROTECTED]



--
Raging_Synth
Bernardo Gomes de Amorim - 2007

Confidencialidade de Correio electrónico
Este email destina-se exclusivamente à(s) pessoa(s) a quem é dirigido e não deverá em caso algum ser reencaminhado ou reutilizado para nenhum fim a não ser aquele para o qual foi criado. Aplicável tambem aos attachments. _______________________________________________

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/sam%40sammcd.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/bernardo.amorim%40gmail.com

This email sent to [EMAIL PROTECTED]



--
Raging_Synth
Bernardo Gomes de Amorim - 2007

Confidencialidade de Correio electrónico
Este email destina-se exclusivamente à(s) pessoa(s) a quem é dirigido e não deverá em caso algum ser reencaminhado ou reutilizado para nenhum fim a não ser aquele para o qual foi criado. Aplicável tambem aos attachments.


 _______________________________________________
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