Re: Semi-transparent, blurred NSWindow background?

2008-08-26 Thread Jonathan Dann
On 26 Aug 2008, at 00:52, Graham Cox wrote: On 26 Aug 2008, at 8:00 am, Jonathan Dann wrote: Using the private APIs / the method that Rob showed is perfectly fast. I'd really like this made easier too, so I filed an enhancement request rdar://6174287 Is it possible to file a de-enhan

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Kyle Sluder
On Mon, Aug 25, 2008 at 7:52 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > A public API for this would mean that every man and his dog will be adding > blurring because it's "cool" without thinking about what it *means*. It's > going to be the brushed metal of the next few OS revs I fear. Better ask

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Michael Ash
On Mon, Aug 25, 2008 at 7:52 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > A public API for this would mean that every man and his dog will be adding > blurring because it's "cool" without thinking about what it *means*. It's > going to be the brushed metal of the next few OS revs I fear. The same b

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Graham Cox
On 26 Aug 2008, at 8:00 am, Jonathan Dann wrote: Using the private APIs / the method that Rob showed is perfectly fast. I'd really like this made easier too, so I filed an enhancement request rdar://6174287 Is it possible to file a de-enhancement request? ;-) Am I the only one mystifie

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Jonathan Dann
On 25 Aug 2008, at 21:51, Seth Willits wrote: On Aug 25, 2008, at 1:33 PM, Ricky Sharp wrote: There isn't a particularly fast way to do this, although I have experimented with it a bit in the past. You can use the CGWindow API to read the contents under your window and apply a blur to th

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Seth Willits
On Aug 25, 2008, at 1:33 PM, Ricky Sharp wrote: There isn't a particularly fast way to do this, although I have experimented with it a bit in the past. You can use the CGWindow API to read the contents under your window and apply a blur to them using Core Image directly or indirectly via Co

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Nate Weaver
I believe the built-in stuff (menus, sheets, etc.) uses the private functions mentioned earlier. Honestly, if you really need this function to work exactly the same, AFAIK the private stuff is the only real way to do it. Simulating it via a custom NSView just seems really hackish and error-

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Ricky Sharp
On Aug 25, 2008, at 12:57 PM, David Duncan wrote: On 25/08/2008, at 2:45 AM, Tim Andersson wrote: Is there any way of creating a NSWindow that has a semi- transparent, blurred background? With "blurred background" I mean that whatever you see through the window/background is distorted (bl

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Jonathan Dann
On 25 Aug 2008, at 16:58, Tim Andersson wrote: 24 aug 2008 kl. 23.20 skrev Jonathan Dann: On 24 Aug 2008, at 17:45, Tim Andersson wrote: YMMV but I'd start with a window as shown in this sample code http://developer.apple.com/samplecode/RoundTransparentWindow/index.html and then replace

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread David Duncan
On 25/08/2008, at 2:45 AM, Tim Andersson wrote: Is there any way of creating a NSWindow that has a semi-transparent, blurred background? With "blurred background" I mean that whatever you see through the window/background is distorted (blurred). There isn't a particularly fast way to do thi

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Tim Andersson
25 aug 2008 kl. 06.13 skrev Rob Keniger: >In 10.5 you can add any core image filter to a window using the >private function 'CGSAddWindowFilter'. > >typedef void * CGSConnectionID; > >extern OSStatus CGSNewConnection(const void **attr, CGSConnectionID >*id); > >- (void)enableBlurForWindow:(NSWind

Re: Semi-transparent, blurred NSWindow background?

2008-08-25 Thread Tim Andersson
24 aug 2008 kl. 23.20 skrev Jonathan Dann: On 24 Aug 2008, at 17:45, Tim Andersson wrote: YMMV but I'd start with a window as shown in this sample code http://developer.apple.com/samplecode/RoundTransparentWindow/ index.html and then replace the view with a custom view, and apply a CI fil

Re: Semi-transparent, blurred NSWindow background?

2008-08-24 Thread Kyle Sluder
On Mon, Aug 25, 2008 at 12:13 AM, Rob Keniger <[EMAIL PROTECTED]> wrote: > Insert standard disclaimer about using private Apple APIs here. And, additionally, please file an enhancement request at http://bugreport.apple.com because this functionality seems quite handy. --Kyle Sluder __

Re: Semi-transparent, blurred NSWindow background?

2008-08-24 Thread Rob Keniger
On 25/08/2008, at 2:45 AM, Tim Andersson wrote: Is there any way of creating a NSWindow that has a semi-transparent, blurred background? With "blurred background" I mean that whatever you see through the window/background is distorted (blurred). In 10.5 you can add any core image filter t

Re: Semi-transparent, blurred NSWindow background?

2008-08-24 Thread Jonathan Dann
On 24 Aug 2008, at 17:45, Tim Andersson wrote: Hi there, Is there any way of creating a NSWindow that has a semi-transparent, blurred background? With "blurred background" I mean that whatever you see through the window/background is distorted (blurred). Any help is appreciated, Tim Ande

Semi-transparent, blurred NSWindow background?

2008-08-24 Thread Tim Andersson
Hi there, Is there any way of creating a NSWindow that has a semi-transparent, blurred background? With "blurred background" I mean that whatever you see through the window/background is distorted (blurred). Any help is appreciated, Tim Andersson

Semi-transparent, blurred NSWindow background?

2008-08-24 Thread Tim Andersson
Hi there, Is there any way of creating a NSWindow that has a semi-transparent, blurred background? With "blurred background" I mean that whatever you see through the window/background is distorted (blurred). Any help is appreciated, Tim Andersson