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: John Joyce <email@hidden>
- Date: Thu, 3 Jun 2010 11:24:13 -0500
On Jun 3, 2010, at 10:38 AM, Kyle Sluder wrote:
> On Jun 3, 2010, at 8:29 AM, Michael Hanna <email@hidden> wrote:
>
>> How do I customize the background colour of a window, including the
>> toolbar? I did this a long time ago and vaguely recall that you can do
>> this by setting it as a "textured window" and changing the background
>> colour, but the exact process is lost on me. I vaguely recall there
>> was some sample code on a japanese blog(?) which had an example how to
>> do this but I lost the name.. HGGWindow or HIGToolkit or something
>> like that.. any help or suggestions?
>
> Of course, the first suggestion is "don't do this."
>
> Have you tried making the window textured and setting the background color, as you suggested? Textured windows themselves are deprecated, of course, but I don't think they can remove the textured window flag.
>
> --Kyle Sluder
Again, DON'T do it unless there's a really appropriate reason for the app to be useful.
(I think a blue window would look cool is not a great reason)
Read the Human Interface Guidelines.
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.
It's a fair bit of work and you will need to familiarize with the docs on NSWindow and friends carefully.
_______________________________________________
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