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

Modal dialog weirdness


  • Subject: Modal dialog weirdness
  • From: Derrick Bass <email@hidden>
  • Date: Sat, 19 Nov 2005 04:15:06 -0600

I am trying to display a modal dialog when my app launches, but there are some weird things going on.

I've put the following code in my application delegate:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// .... not shown: code to check if app is not registered and load registration dialog from nib.


    [NSApp runModalForWindow:[registrationController window]];
    [[registrationController window] close];
}

First, when the dialog is displayed, the Quit menu item is disabled. How do I enable it?
Second, although the "Open Recent" menu is disabled, the "Open..." item still works! How do I disable it?


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: j o a r <email@hidden>
  • Prev by Date: Re: URL loading system not threadsafe?
  • Next by Date: Using NSBundle
  • Previous by thread: Re: adding Foundation framework to a Carbon application
  • Next by thread: Re: Modal dialog weirdness
  • Index(es):
    • Date
    • Thread