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



<email@hidden>
<email@hidden>
<email@hidden>
<email@hidden>
<email@hidden>
<email@hidden> <email@hidden>
Message-ID: <05be7e1752ea88900ee1c08693d2763d@localhost>
X-Sender: email@hidden
Received: from 80.168.170.253 [80.168.170.253] with HTTP/1.1 (POST); Tue, 20
	May 2008 10:49:26 -0600
User-Agent: RoundCube Webmail/0.1-rc2
Content-Type: multipart/alternative;
	boundary="=_58bc0656c74314c0a5f9e5e7ba661427"


--=_58bc0656c74314c0a5f9e5e7ba661427
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit



 Thanks guys, thats awesome. I appreciate all the tips on windowless
QC rendering. I had it working perfectly... until it just stopped
working! My QC patch is loading an xml file in an assets folder
(assets/data.xml) and loading in jpgs (again from the assets folder),
I'm guessing it has something to do with that. When I run the
composition from QC it works fine, when I run the .app all I see is
the background (the assets folder is next to the .app file so relative
path should work).  Is this a security issue? Are there any
complications in loading xml files from compositions embedded in an
.app? I noticed if I export my composition to a .mov from QC it also
doesn't work (can only see background).  
 n Tue, 20 May 2008 12:24:14 -0400, vade  wrote:   True, i had
neglected to do that, thanks for the reminder :)  
  On May 20, 2008, at 8:09 AM, Marco Masser wrote:
     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 :)
   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 [1])
 Help/Unsubscribe/Update your Subscription:

http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden
[2]
 This email sent to email@hidden   
 ---------------------------- Mehmet S. Akten email@hidden
www.memo.tv +44 7958 783 832 +44 20 8123 9986 29 Ironworks Dace Rd.
London E3 2NX UK  

Links:
------
[1] mailto:email@hidden
[2]
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

--=_58bc0656c74314c0a5f9e5e7ba661427
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<p>
Thanks guys, thats awesome. I appreciate all the tips on windowless QC rend=
ering. I had it working perfectly... until it just stopped working! My QC p=
atch is loading an xml file in an assets folder (assets/data.xml) and loadi=
ng in jpgs (again from the assets folder), I'm guessing it has something to=
 do with that. When I run the composition from QC it works fine, when I run=
 the .app all I see is the background (the assets folder is next to the .ap=
p file so relative path should work).&nbsp; Is this a security issue? Are t=
here any complications in loading xml files from compositions embedded in a=
n .app? I noticed if I export my composition to a .mov from QC it also does=
n't work (can only see background).
</p>
<p>
&nbsp;
</p>
<p>
n Tue, 20 May 2008 12:24:14 -0400, vade  wrote:
</p>
<blockquote style=3D"border-left: 2px solid #1010ff; padding-left: 5px; mar=
gin-left: 5px; width: 100%">
	True, i had neglected to do that, thanks for the reminder :)
	<div>
	<br />
	<div>
	<br />
	<div>
	On May 20, 2008, at 8:09 AM, Marco Masser wrote:<br />
	<blockquote>
		<div>
		<div>
		<blockquote>
			So, here is another updated version that lets you select what window lev=
el 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 :)<br />
			<br />
			<span></span><br />
		</blockquote>
		<br />
		</div>
		<div>
		That's really cool, thanks for providing this code!
		</div>
		<div>
		<br />
		</div>
		<div>
		I have one suggestion, though: Add the timer to the various run loop mode=
s at the end of the -applicationDidFinishLaunching in AppController.m. It s=
hould look like this:
		</div>
		<div>
		<br />
		</div>
		<div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #007400">
		////
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #007400">
		//
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #007400">
		// setup a simple timer to call our render function
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #007400">
		//
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #007400">
		////
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; min-height: 14px">
		<br />
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #2e0d6e">
		<span style=3D"color: #3f6e74">mainTimer</span><span style=3D"color: #000=
000"> =3D [</span><span style=3D"color: #5c2699">NSTimer</span><span style=
=3D"color: #000000"> </span>scheduledTimerWithTimeInterval<span style=3D"co=
lor: #000000">:(</span><span style=3D"color: #5c2699">NSTimeInterval</span>=
<span style=3D"color: #000000">)(</span><span style=3D"color: #1c00cf">1</s=
pan><span style=3D"color: #000000">/</span><span style=3D"color: #1c00cf">3=
0.0</span><span style=3D"color: #000000">) </span>target<span style=3D"colo=
r: #000000">:</span><span style=3D"color: #aa0d91">self</span><span style=
=3D"color: #000000"> </span>selector<span style=3D"color: #000000">:</span>=
<span style=3D"color: #aa0d91">@selector</span><span style=3D"color: #00000=
0">(</span>render<span style=3D"color: #000000">) </span>userInfo<span styl=
e=3D"color: #000000">:</span><span style=3D"color: #aa0d91">nil</span><span=
 style=3D"color: #000000"> </span>repeats<span style=3D"color: #000000">:</=
span><span style=3D"color: #aa0d91">YES</span><span style=3D"color: #000000=
">];  </span>
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; min-height: 14px">
		<br />
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #2e0d6e">
		<span style=3D"color: #000000">[[</span><span style=3D"color: #5c2699">NS=
RunLoop</span><span style=3D"color: #000000"> </span>currentRunLoop<span st=
yle=3D"color: #000000">] </span>addTimer<span style=3D"color: #000000">:</s=
pan><span style=3D"color: #3f6e74">mainTimer</span><span style=3D"color: #0=
00000"> </span>forMode<span style=3D"color: #000000">:</span><span style=3D=
"color: #5c2699">NSDefaultRunLoopMode</span><span style=3D"color: #000000">=
];</span>
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #5c2699">
		<span style=3D"color: #000000">[[</span>NSRunLoop<span style=3D"color: #0=
00000"> </span><span style=3D"color: #2e0d6e">currentRunLoop</span><span st=
yle=3D"color: #000000">] </span><span style=3D"color: #2e0d6e">addTimer</sp=
an><span style=3D"color: #000000">:</span><span style=3D"color: #3f6e74">ma=
inTimer</span><span style=3D"color: #000000"> </span><span style=3D"color: =
#2e0d6e">forMode</span><span style=3D"color: #000000">:</span>NSModalPanelR=
unLoopMode<span style=3D"color: #000000">];</span>
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #5c2699">
		<span style=3D"color: #000000">[[</span>NSRunLoop<span style=3D"color: #0=
00000"> </span><span style=3D"color: #2e0d6e">currentRunLoop</span><span st=
yle=3D"color: #000000">] </span><span style=3D"color: #2e0d6e">addTimer</sp=
an><span style=3D"color: #000000">:</span><span style=3D"color: #3f6e74">ma=
inTimer</span><span style=3D"color: #000000"> </span><span style=3D"color: =
#2e0d6e">forMode</span><span style=3D"color: #000000">:</span>NSEventTracki=
ngRunLoopMode<span style=3D"color: #000000">];</span>
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; min-height: 14px">
		<br />
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #2e0d6e">
		<span style=3D"color: #000000">[</span><span style=3D"color: #3f6e74">mai=
nWindow</span><span style=3D"color: #000000"> </span>makeKeyAndOrderFront<s=
pan style=3D"color: #000000">:</span><span style=3D"color: #aa0d91">nil</sp=
an><span style=3D"color: #000000">];</span>
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #2e0d6e">
		<font color=3D"#000000"><br />
		</font>
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #2e0d6e">
		<font color=3D"#000000"><br />
		</font>
		</div>
		<div style=3D"margin: 0px; font-family: Monaco; font-style: normal; font-=
variant: normal; font-weight: normal; font-size: 10px; line-height: normal;=
 font-size-adjust: none; font-stretch: normal; color: #2e0d6e">
		<span class=3D"Apple-style-span" style=3D"color: #000000; font-family: He=
lvetica; font-size: 12px">That way the composition does not stop rendering =
while the user selects something in the menu or while the open file panel i=
s visible.</span>
		</div>
		</div>
		</div>
		 _______________________________________________<br />
		Do not post admin requests to the list. They will be ignored.<br />
		Quartzcomposer-dev mailing list      (<a href=3D"mailto:Quartzcomposer-de=
email@hidden">email@hidden</a>)<br />
		Help/Unsubscribe/Update your Subscription:<br />
		<a href=3D"http://lists.apple.com/mailman/options/quartzcomposer-dev/dokt=
email@hidden">http://lists.apple.com/mailman/options/quartzcomposer-dev/do=
email@hidden</a><br />
		<br />
		This email sent to email@hidden
	</blockquote>
	</div>
	<br />
	</div>
	</div>
</blockquote>
<span id=3D"_rc_sig">
<pre>
----------------------------
Mehmet S. Akten
email@hidden
www.memo.tv
+44 7958 783 832
+44 20 8123 9986
29 Ironworks
Dace Rd.
London E3 2NX
UK
</pre>
</span>

--=_58bc0656c74314c0a5f9e5e7ba661427--


 _______________________________________________
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>)



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.