Re: screen dump crash with out sleep
Re: screen dump crash with out sleep
- Subject: Re: screen dump crash with out sleep
- From: Mike Paquette <email@hidden>
- Date: Sat, 23 Jun 2007 08:07:30 -0700
On Jun 23, 2007, at 3:37 AM, Raul Fiedler wrote:
window = [[NSWindow alloc] initWithContentRect:rect
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreNonretained defer:NO];
[window setBackgroundColor:[NSColor blueColor]];
[window setLevel:NSScreenSaverWindowLevel];
[window setHasShadow:NO];
[window setAlphaValue:0.2];
[window setOpaque:NO];
Eeep!
The NSBackingStoreNonretained backing type is a specialized form that
exists only on the display, and requires specialized application
support that I don't think is readily done through Cocoa. These
'nonretained' windows cannot support things like 'alpha' or non-opaque
content, as they bypass the compositor completely. The use of
nonretained windows is both a technical challenge and a performance
hit for most apps, for a number of technical reasons. This is very
likely to be your problem.
The use of the NSBackingStoreBuffered backing type is strongly
recommended, as this window type supports alpha content, non-opaque
windows, and can be accelerated through the hardware compositor.
Mike Paquette
CoreGraphics Curmudgeon At Large
_______________________________________________
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