Disappearing contentBorder in NSiIndow
Disappearing contentBorder in NSiIndow
- Subject: Disappearing contentBorder in NSiIndow
- From: Eamon Ford <email@hidden>
- Date: Mon, 31 Mar 2008 19:48:03 -0700
Hi everybody,
I'm trying to set my window background color to "clear", so that I can
(temporarily) have a translucent black subview. But later, I need to
set the window back to how it was before. The problem is that the
window has one of those nice content borders on the bottom, which
disappears after I call setBackgroundColor - never to return! Even
when I call setContentBorderThickness:forEdge:, the content border
won't show up again. Here's my code:
NSColor *originalColor = [mainWindow backgroundColor];
[mainWindow setBackgroundColor:[NSColor clearColor]];
...
[mainWindow setBackgroundColor:originalColor];
[mainWindow setContentBorderThickness:39.0 forEdge:NSMinYEdge]; // The
content border still doesn't show up
Does anyone have any suggestions for what I can do? Thanks in advance!!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden