Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling NSToolbar toggle via "Pill" White Button??



You can get a pointer to it via NSWindow's "standardWindowButton:" method, then remove it from it's superview. I discovered that you may need to retain it before removing it from it's superview, because the window still sends draw messages to it (even after it's been removed), and if it's not there it will crash.

NSView *myToolbarWidget = [[myWindow standardWindowButton:NSWindowToolbarButton] retain];
[myToolbarWidget removeFromSuperview];

HTH,

-gtc

On Wednesday, April 30, 2003, at 08:24 PM, Jean-Olivier Lancttt-D. wrote:

Hi list

I have a problem..

I have an app where I want the toolbar to be always visible....

Do you know if I can hide or disable the white "pill" button that toggles the toolbar's visibility?

-- Jean-Olivier
_______________________________________________
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.




-gtc
_______________________________________________
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.

References: 
 >Disabling NSToolbar toggle via "Pill" White Button?? (From: "Jean-Olivier Lanctôt-D." <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.