• 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 dialogs and system edit menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modal dialogs and system edit menu items


  • Subject: Modal dialogs and system edit menu items
  • From: Tim Gogolin <email@hidden>
  • Date: Mon, 5 Jun 2006 14:02:05 -0500

In my Cocoa based app, The edit menu item "Special Characters..." automatically disables when a modal dialog is present.

So I checked a few other Cocoa apps to see if this was normal... Many Cocoa apps successfully avoid app-modal dialogs by using sheets (which is nice), but Safari uses a modal File Picker dialog when you press Cmd-O (File/Open), and reproduces the same behavior (bug?), so I'm assuming this is a Cocoa problem.

Some observations (that apply to both my app and Safari's Open Panel):
If I bring up the "Special Characters" floating window before I bring up the modal dialog, the Special Characters seems to work fine; I haven't tested extensively, but I can select from popup menus, select tab controls, double click to insert characters, etc.


The Edit Menu: "Edit/Spelling/Spelling..." is NOT disabled and brings up the Spelling palette, which doesn't work at all.

Is the system behaving as expected with regards to disabling the "Special Characters" menu item (even though the Special Characters floater appears to function correctly?)

I can only assume the Spelling dialog *should* be disabled (contrary to current behavior), since it doesn't appear to receive events in this state.

Am I supposed to do some NSRunLoop magic in order to get the Special Characters item to be enabled while running a modal dialog?

--
Tim Gogolin
Adobe Systems

_______________________________________________
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


  • Prev by Date: Re: Strategy for read only Templates with Core Data
  • Next by Date: Auto sizing and locating
  • Previous by thread: Manipulating glyphs in text layout
  • Next by thread: Auto sizing and locating
  • Index(es):
    • Date
    • Thread