• 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: Toolbar and Brushed Metal background question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbar and Brushed Metal background question...


  • Subject: Re: Toolbar and Brushed Metal background question...
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Tue, 12 Oct 2004 00:10:27 -0700

Hello...

Well, yes, there is a way to turn off the line that appears at the bottom of the toolbar.

Unfortunately, it requires that you access private unsupported methods that are not part of the API.

Quoting Ali Ozer from Apple:
Please don't use undocumented interfaces; they are undocumented because
they are not meant for general use. They might go away at any point, or
worse, their behavior might change in a way which breaks your app.

I would recommend that you seriously consider leaving the baseline intact, even if you think it detracts visually from your window or it would mean rethinking your UI design...

That said, you can do it like this:

NSToolbar *yourToolbar;

[[yourToolbar _toolbarView] _setDrawsBaseline:FALSE];


If you would like this feature to become part of the public AppKit API, you should file an enhancement request at <https://bugreport.apple.com/>. Make sure you include a brief summary of the reasons why this feature is important to you and how it affects your application.

Hope that helps,

Louis


I am using a Toolbar with the Brushed Metal background, and I would like to know if there is a way to hide the line that appears at the bottom of the Toolbar.

Is there an attribute that needs to be set to hide the line, or do I need to subclass NSToolbar and override the drawing methods? If the latter needs to be done, which methods need to be overridden? Or, do I have to do some creative "Duct taping" work to get rid of the line...

Any suggestion would be great.

Thanks,

Allan Dushan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Toolbar and Brushed Metal background question... (From: Allan Dushan <email@hidden>)

  • Prev by Date: Re: Newbie needs help! (reading control-clicks)
  • Next by Date: Re: toolbar menu erro
  • Previous by thread: Toolbar and Brushed Metal background question...
  • Next by thread: Re: open the AddressBook and have a group selected
  • Index(es):
    • Date
    • Thread