• 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: Gradient panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Porting SetupComm function in Mac
  • Next by Date: Re: Padding Zeros...
  • Previous by thread: Re: Cannot change menu state in NSSearchField menu for more than once
  • Next by thread: Re: Padding Zeros...
  • Index(es):
    • Date
    • Thread