Hi all again, I'm trying to change the transparency of the background of a Window. This will be done on a click of a button which is placed on the window.
Heres my code so far:
PS I dont know how to set the current window to aWindow help with that would be good as well
Thanks all in advance
Stephen
Heres my code so far:
Code:
- (IBAction)changeOpacity:(id)sender
{
NSWindow *aWindow;
[aWindow setOpaque:NO];
NSColor *semiTransparentBlue = [NSColor colorWithDeviceRed:0.0 green:0.0 blue:1.0 alpha:0.5];
[aWindow setBackgroundColor:semiTransparentBlue];
}
PS I dont know how to set the current window to aWindow help with that would be good as well
Thanks all in advance
Stephen