Re: This winodw has a parent window
aglee <[email protected]> Tue, 21 Dec 2010 22:17:18 +0000 (GMT)
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Dec 21, 2010, at 04:51 PM, Eric Gorr <[email protected]> wrote: [..] >> On Dec 21, 2010, at 01:54 PM, Christiaan Hofman <[email protected]> wrote: > If anyone wants to see it, I just created an app from the standard simple app template, adding the following to the app delegate implementation (and an NSWindow ivar named overlay): > > - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { > NSRect rect = [window contentRectForFrameRect:[window frame]]; > overlay = [[NSWindow alloc] initWithContentRect:rect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES]; > [overlay setAlphaValue:0.5]; > [overlay setBackgroundColor:[NSColor redColor]]; > [overlay orderFront:nil]; > [window addChildWindow:overlay ordered:NSWindowAbove]; > } hummm.... I don't see the warning you were reporting... I don't see it either. Can you post a tarball of your project (or a link to it)? Do you have any haxies or other system tweaks installed? Does the same happen if you log in as a different user? --Andy