• 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: Why no transparent window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why no transparent window?


  • Subject: Re: Why no transparent window?
  • From: Finlay Dobbie <email@hidden>
  • Date: Mon, 24 Sep 2001 07:20:22 +0100

If I understand you correctly, what you want is - (void)setAlphaValue:(float)windowAlpha where windowAlpha is a value from 0 to 1.

-- Finlay

On Monday, September 24, 2001, at 09:13 am, j o a r wrote:

Hello,

If I open a window like this:

myWindow = [[NSWindow alloc] initWithContentRect:NSMakeRect(100.0,100.0,500.0,500.0)
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO];

// This window should be transparent
NSLog(@"isOpaque: %d", [myWindow isOpaque]);
[myWindow setOpaque:NO];
NSLog(@"isOpaque: %d", [myWindow isOpaque]);

[myWindow makeKeyAndOrderFront:self];

The window still shows up with the striped background - does any one know why?
The log output indicates that the "setOpaque" call was effective - ie. 1 before and 0 after.

Regards,

j o a r
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Why no transparent window? (From: j o a r <email@hidden>)

  • Prev by Date: Re: Volume mounted notification?
  • Next by Date: Re: Is there a decent Obj-C for Windows?
  • Previous by thread: Why no transparent window?
  • Next by thread: [Solution] Why no transparent window?
  • Index(es):
    • Date
    • Thread