0

In cocoa, do you know how to change the alpha of a window shown as a sheet? I launch the window with this function and the app always makes the window semi-transparent, I don't want that.

- (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow *)docWindow modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo;

And no, calling [[awesomeFantasticWindow window] setAlphaValue:1.0] doesn't work

Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
user825574
  • 71
  • 6

2 Answers2

0

You could try setOpaque or setAlphaValue? I know it's silly but figured I'd start with the easy stuff.

mdominick
  • 1,319
  • 1
  • 10
  • 21
0

Just add your own custom view as the window's content view and set its color to whatever you want.

Rob Keniger
  • 45,830
  • 6
  • 101
  • 134