Re: Change the background colour of a window and toolbar
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