Consider a window presented as a sheet with background transparency.

- (void)windowDidLoad
{
    // Produces gray background with transparency.
    NSColor *color = [NSColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.9];
    self.window.backgroundColor = color;
}

- (void)windowDidLoad
{
    // Produces near white background with no transparency.
    NSColor *color = [NSColor colorWithRed:0.6 green:0.6 blue:0.6 alpha:0.9];
    self.window.backgroundColor = color;
}

The first case produces a background with transparency.

The second case produces a background with no transparency.

Why does’t the second case yield any transparency?

--Richard Charles


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to