Re: toggleToolbarShown - how to validate menu item?
Re: toggleToolbarShown - how to validate menu item?
- Subject: Re: toggleToolbarShown - how to validate menu item?
- From: j o a r <email@hidden>
- Date: Sat, 16 Feb 2002 14:38:30 +0100
On Wednesday, February 13, 2002, at 11:11 , Manfred Lippert wrote:
I have a window with a toolbar. In the menu bar there is the item
"Toggle
Toolbar" which originally was connected to the action
"toggleToolbarShown"
of the FirstResponder.
It worked, but if my window has a sheet attached, the menu item is
enabled,
but has no function! (Is that a bug in Cocoa??) I tried to workaround
in the
following way:
<snip>
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)
Best regards,
j o a r
_______________________________________________
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.