• 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: toggleToolbarShown - how to validate menu item?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: toggleToolbarShown - how to validate menu item?
      • From: Donald Brown <email@hidden>
References: 
 >toggleToolbarShown - how to validate menu item? (From: Manfred Lippert <email@hidden>)

  • Prev by Date: Re: what's an NSZone?
  • Next by Date: Re: toggleToolbarShown - how to validate menu item?
  • Previous by thread: toggleToolbarShown - how to validate menu item?
  • Next by thread: Re: toggleToolbarShown - how to validate menu item?
  • Index(es):
    • Date
    • Thread