Re: Gradient panel
Re: Gradient panel
- Subject: Re: Gradient panel
- From: Uli Kusterer <email@hidden>
- Date: Mon, 3 Nov 2008 10:39:10 +0100
On 01.11.2008, at 04:28, David wrote:
Is there an easy way to instantiate a Cocoa panel with a gradient
background?
Are there any code samples?
Is NSGradient the key? Any examples of how you hook this in with a
panel or window?
Do you mean an arbitrary background, or are you perhaps talking
about textured windows (there's a window mask to get one of those)?
Note that Apple kinda doesn't like textured windows anymore (hence
they look kinda the same as regular windows on 10.5), and you're
really generally intended to set the window's bottom border height to
get a gradient fill for your bottom bar up to your bottom-most view.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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