• 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: Background color for Drawers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Background color for Drawers


  • Subject: Re: Background color for Drawers
  • From: Jeremy Dronfield <email@hidden>
  • Date: Mon, 14 Jun 2004 10:16:40 +0100

On 14 Jun 2004, at 5:36 am, Steve Sheets wrote:
Is there way to set the background color for a drawer? Unlike NSWindow, NSDrawer does not seem to have a background color to set.

That's because NSDrawer inherits from NSResponder, not NSWindow.

Nor does it use the background color of the parent window. If you set the parent window to Metal Texture, the drawer does draws it background using metal, but that seems to be the only direct control. I could either override the drawers context view to draw a pattern, or put a custom view over top of it that draws the pattern, but was hoping for a better solution. Did I miss something?

You can set your drawer's contentView to any view you like. Create a custom view and draw your pattern (pattern?!) in its -drawRect: method.

Regards,
-Jeremy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Background color for Drawers
      • From: Steve Sheets <email@hidden>
References: 
 >Background color for Drawers (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: POST request without NSURLConnection
  • Next by Date: Re: NSCalendarDate not localized
  • Previous by thread: Background color for Drawers
  • Next by thread: Re: Background color for Drawers
  • Index(es):
    • Date
    • Thread