Re: screen dump crash with out sleep
Re: screen dump crash with out sleep
- Subject: Re: screen dump crash with out sleep
- From: email@hidden
- Date: Wed, 27 Jun 2007 02:19:36 -0700
Hi
the option NSBackingStoreBuffered took care of the crash.
However the screen dump is just blank.
To iterate what I tried to achieve.
Place a window over the area of the screen dump.
Make an image of the content of this window and store it to disk.
I gave up on cocoa to do this. Instead I use carbon code.
Thanks for your suggestions.
On Saturday, June 23, 2007, at 05:07PM, "Mike Paquette" <email@hidden> wrote:
>
>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