• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Disappearing contentBorder in NSiIndow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Modify Input in NSTableView
  • Next by Date: Re: Threads and Core Data, bindings results in view corruption
  • Previous by thread: Re: Custom interface
  • Index(es):
    • Date
    • Thread