Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disappearing contentBorder in NSiIndow



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.