Re: Toolbar and Brushed Metal background question...
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