• 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
Re: Change the background colour of a window and toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change the background colour of a window and toolbar


  • Subject: Re: Change the background colour of a window and toolbar
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 3 Jun 2010 09:32:17 -0700

On Jun 3, 2010, at 9:24 AM, John Joyce <email@hidden> wrote:

If you REALLY think you need this, look at the Stickies sample code (may be named Core Data Stickies, don't recall precisely). You'll see how to roll your own window.

Part of the benefit of going the textured-window route is that you get standard NSWindow behaviors (albeit with textured-window metrics: bulkier borders, farther-inset window buttons, bigger resize grabbies, and round bottom corners).


As fr actually changing the background color of a textured window, I believe you can just grab the window's content view. Barring that, its superview (the window's theme frame) will do the job, but the existence and behavior of that view is private and therefore not guaranteed to remain consistent.

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: Change the background colour of a window and toolbar
      • From: Michael Hanna <email@hidden>
References: 
 >Change the background colour of a window and toolbar (From: Michael Hanna <email@hidden>)
 >Re: Change the background colour of a window and toolbar (From: Kyle Sluder <email@hidden>)
 >Re: Change the background colour of a window and toolbar (From: John Joyce <email@hidden>)

  • Prev by Date: Re: Change the background colour of a window and toolbar
  • Next by Date: Re: How to change color of text in webView
  • Previous by thread: Re: Change the background colour of a window and toolbar
  • Next by thread: Re: Change the background colour of a window and toolbar
  • Index(es):
    • Date
    • Thread