Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transparent background app



So, here is another updated version that lets you select what window level the quartz comp is on, (floating above everything, normal app style, or on the desktop behind everything), passes mouse clicks and keyboard events, and lets you open and switch the composition. Enjoy :)

<TransparentBorderlessQCRenderer.zip>

That's really cool, thanks for providing this code!

I have one suggestion, though: Add the timer to the various run loop modes at the end of the -applicationDidFinishLaunching in AppController.m. It should look like this:

////
//
// setup a simple timer to call our render function
//
////


mainTimer = [NSTimer scheduledTimerWithTimeInterval:(NSTimeInterval)(1/30.0) target:self selector:@selector(render) userInfo:nil repeats:YES];  


[[NSRunLoop currentRunLoop] addTimer:mainTimer forMode:NSDefaultRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer:mainTimer forMode:NSModalPanelRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer:mainTimer forMode:NSEventTrackingRunLoopMode];


[mainWindow makeKeyAndOrderFront:nil];


That way the composition does not stop rendering while the user selects something in the menu or while the open file panel is visible.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >transparent background app (From: Memo Akten <email@hidden>)
 >Re: transparent background app (From: vade <email@hidden>)
 >Re: transparent background app (From: Memo Akten <email@hidden>)
 >Re: transparent background app (From: vade <email@hidden>)
 >Re: transparent background app (From: Memo Akten <email@hidden>)
 >Re: transparent background app (From: vade <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.