• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling NSToolbar toggle via "Pill" White Button??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Disabling NSToolbar toggle via "Pill" White Button??
  • From: Greg Casey <email@hidden>
  • Date: Wed, 30 Apr 2003 23:38:51 -0400

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>)

  • Prev by Date: Re: accessing filename from save in )dataRepresentationOfType:
  • Next by Date: Re: Newbie: basic array questions
  • Previous by thread: Disabling NSToolbar toggle via "Pill" White Button??
  • Next by thread: Save features in Alert Sheets
  • Index(es):
    • Date
    • Thread