Re: Toolbar hide/show button
Re: Toolbar hide/show button
- Subject: Re: Toolbar hide/show button
- From: Brian Webster <email@hidden>
- Date: Tue, 11 Mar 2003 12:14:51 -0600
Under 10.2, you can access the standard window buttons in the title bar
using the standardWindowButton: method. To hide the button, the
following would probably work:
NSButton* toolbarButton;
toolbarButton = [myWindow standardWindowButton:NSWindowToolbarButton];
if (toolbarButton != nil)
{
[toolbarButton setEnabled:NO];
[toolbarButton setTransparent:YES];
}
On Tuesday, March 11, 2003, at 11:54 AM,
email@hidden wrote:
But how do I make a toolbar myself if it's not possible to remove the
hide/show button?
Peter
From: Seth Willits <email@hidden>
To: "Peter Karlsson" <email@hidden>
CC: email@hidden
Subject: Re: Toolbar hide/show button
Date: Tue, 11 Mar 2003 06:27:30 -0800
On Tuesday, March 11, 2003, at 01:08 AM, Peter Karlsson wrote:
Is it even possible to do?
Not that I know of. It is in Carbon, so maybe you could make a Carbon
call
to remove it, although I highly recommend that you don't.
Seth Willits
----------------------------------------------------------------------
--
---
President and Head Developer of Freak Software -
http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine -
http://www.rbdeveloper.com
"In the eyes of others, spending a lifetime chasing a dream is often
seen
as a lavish waste of a one-time gift. But maybe the joy isn't in its
catching, but rather in its pursuit."
-- Seth Willits
----------------------------------------------------------------------
--
---
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.