• 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
Menu items vs modal sessions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Menu items vs modal sessions


  • Subject: Menu items vs modal sessions
  • From: Pierre Bernard <email@hidden>
  • Date: Sun, 13 Apr 2008 18:12:22 +0200

Hi!

How come some menu items are enabled and others disabled while there is a modal session going on?

Does this mean that Apple has implemented validateMenuItem somewhere in the responder chain to check for modalWindow and attachedSheet?
Where in the responder chain would that be?


I have wired up most of my menu items using Cocoa bindings. It would then only seem logical to use bindings to determine if those menu items should be enabled when a modal window or sheet is being displayed. So I bound enabled to NSApp.modalWindow and to window.attachedSheet using a NSIsNil transformer. Is the way to go?

Pierre

---
Pierre Bernard
http://www.bernard-web.com/pierre
http://www.houdah.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Menu items vs modal sessions
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: EXC_BAD_ACCESS when calling CGContextDrawLayerInRect
  • Next by Date: Re: HUD-style panel controls?
  • Previous by thread: Simple TextView not updating view
  • Next by thread: Re: Menu items vs modal sessions
  • Index(es):
    • Date
    • Thread