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 | cocoa-dev@lists.apple.com 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 | cocoa-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Greg Casey