• 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: screen dump crash with out sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: screen dump crash with out sleep
      • From: email@hidden
References: 
 >screen dump crash with out sleep (From: email@hidden)
 >Re: screen dump crash with out sleep (From: Dorian Johnson <email@hidden>)
 >Re: screen dump crash with out sleep (From: Michael Watson <email@hidden>)
 >Re: screen dump crash with out sleep (From: Raul Fiedler <email@hidden>)

  • Prev by Date: Re: screen dump crash with out sleep
  • Next by Date: Custom sizing of flexible space toolbar item à la Mail.app
  • Previous by thread: Re: screen dump crash with out sleep
  • Next by thread: Re: screen dump crash with out sleep
  • Index(es):
    • Date
    • Thread