Re: toggleToolbarShown - how to validate menu item?
Re: toggleToolbarShown - how to validate menu item?
- Subject: Re: toggleToolbarShown - how to validate menu item?
- From: Donald Brown <email@hidden>
- Date: Sat, 16 Feb 2002 07:59:02 -0600
on 2/16/02 7:38 AM, j o a r at email@hidden wrote:
>
You should RTFM that states:
>
>
"In Interface Builder, place the Hide Toolbar/Show Toolbar and Customize
>
Toolbar menu items together in that order in the View menu and hook them
>
up to First Responder. NSWindow validates both toolbar menu items and
>
takes care of ensuring that the toggling between Hide Toolbar and Show
>
Toolbar stays in sync with the actual state of the toolbar."
>
>
(Note that in order to get this validation "for free" the menu items
>
must be named exactly like Apple states in the paragraph above)
Apparently the View menu also must be named that. When I called it "Views",
my window didn't get that cool nib for showing and hiding the Toolbar.
(Spent a lot of time looking for the documentation about how to activate it,
got frustrated when it said it happened automatically).
Donald
--
Donald Brown
email@hidden
http://www.eamontales.com
We have met the enemy and he is us - Pogo
_______________________________________________
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.