• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Semi-transparent, blurred NSWindow background?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Semi-transparent, blurred NSWindow background?


  • Subject: Re: Semi-transparent, blurred NSWindow background?
  • From: David Duncan <email@hidden>
  • Date: Mon, 25 Aug 2008 10:57:53 -0700

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 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 Core Animation, but in either case you'll see the Window Server spending considerably more CPU time as it has to re-render the contents under your window. You could fake it by updating the image rarely but there isn't a particularly good way to completely mitigate the CPU usage.


On Aug 24, 2008, at 9:13 PM, Rob Keniger wrote:

In 10.5 you can add any core image filter to a window using the private function 'CGSAddWindowFilter'.


Please do not use private API, they are subject to change in ways that can break your application on any OS update. File a feature enhancement request describing what you wish to do instead.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Semi-transparent, blurred NSWindow background?
      • From: Ricky Sharp <email@hidden>
References: 
 >Semi-transparent, blurred NSWindow background? (From: Tim Andersson <email@hidden>)
 >Re: Semi-transparent, blurred NSWindow background? (From: Rob Keniger <email@hidden>)

  • Prev by Date: Re: Accessing Audio Samples in Cocoa
  • Next by Date: Re: Lazy Loading Archive
  • Previous by thread: Re: Semi-transparent, blurred NSWindow background?
  • Next by thread: Re: Semi-transparent, blurred NSWindow background?
  • Index(es):
    • Date
    • Thread