• 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: Set background color to NSToolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set background color to NSToolbar


  • Subject: Re: Set background color to NSToolbar
  • From: Fritz Anderson <email@hidden>
  • Date: Sat, 30 Jun 2007 18:47:41 -0500

On 30 Jun 2007, at 11:42 AM, Lorenzo wrote:

How to set the background color to a NSToolbar?

You can't. It's not an NSView, it doesn't expose an NSView, and it doesn't have an API for drawing or changing colors.


Unpublished API may make an NSView or drawing code accessible (you may want to play with, or search the net for, the _toolbarView mentioned in the header). But it may not be easy, and Apple may some day make it impossible. Or (I don't know Apple's plans), Apple may change the appearance of windows and toolbars in a way that makes your innovation look bad.

I believe people in your position use their own toolbar views, and not NSToolbar.

	— F

_______________________________________________

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


References: 
 >Set background color to NSToolbar (From: Lorenzo <email@hidden>)

  • Prev by Date: refresh of tableColumn headerView not working
  • Next by Date: Re: Hide NSMenuItem
  • Previous by thread: Set background color to NSToolbar
  • Next by thread: Function from string
  • Index(es):
    • Date
    • Thread