Re: How to hide toolbar control in menu bar
Re: How to hide toolbar control in menu bar
- Subject: Re: How to hide toolbar control in menu bar
- From: Nicholas Riley <email@hidden>
- Date: Tue, 15 Oct 2002 00:28:51 -0500
- Mail-followup-to: Donald Brown <email@hidden>, Cocoa dev <email@hidden>
On Mon, Oct 14, 2002 at 08:59:32PM -0500, Donald Brown wrote:
>
Our user testing has found that some users who have recently come from OS 9
>
have been hitting the toolbar hide/show button when trying to zoom the
>
window, and then suddenly have the toolbar disappear without understanding
>
why. Is there any way to have the window NOT show the button in the
>
toolbar?
Not exactly documented, but you can do it this way:
NSWindow *window = ... your window ...;
[[[window _borderView] toolbarButton] removeFromSuperview];
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.