• 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: Modal dialog weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal dialog weirdness


  • Subject: Re: Modal dialog weirdness
  • From: Derrick Bass <email@hidden>
  • Date: Sat, 19 Nov 2005 13:24:54 -0600

On Nov 19, 2005, at 5:37 AM, j o a r wrote:

First, when the dialog is displayed, the Quit menu item is disabled. How do I enable it?



This is the intended behaviour. If you want to change it, you'll probably need to change the action method for that menu item.



It's currently connected to terminate:, of course. I tried adding a terminate: method to the dialog's controller class (which just called through to [NSApp terminate:]) in the hopes that it would be picked up by the responder chain, but it didn't help. So I should connect it to some other action and then implement that action in my controller class?




Second, although the "Open Recent" menu is disabled, the "Open..." item still works! How do I disable it?



What is that menu item connected to? If you have not changed the default connection for this item, it would also be disabled.



It's connected to "openDocument:" which is the default for Xcode's NSDocument-based application stationery. Could the NSDocumentController somehow be in the responder chain, even though I have a modal window?

Derrick



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Modal dialog weirdness
      • From: Sherm Pendley <email@hidden>
References: 
 >Modal dialog weirdness (From: Derrick Bass <email@hidden>)
 >Re: Modal dialog weirdness (From: j o a r <email@hidden>)

  • Prev by Date: Re: XCoders in Portland, OR?
  • Next by Date: Re: adding Foundation framework to a Carbon application
  • Previous by thread: Re: Modal dialog weirdness
  • Next by thread: Re: Modal dialog weirdness
  • Index(es):
    • Date
    • Thread