• 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
Speaking of open file dialogs...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Speaking of open file dialogs...


  • Subject: Speaking of open file dialogs...
  • From: Chris Reed <email@hidden>
  • Date: Sun, 9 Mar 2003 14:57:43 -0600

I just discovered and worked around an interesting problem in my AU.

One of the buttons in the edit view will open a file selection panel to let the user select and audio file. It works just fine, except for one thing that happens in a Cocoa app (and apparently only Cocoa apps). The dialog is hidden correctly when the user closes. But when you call NavDialog Dispose, the panel appears again for a brief moment and disappears again. As I said, this does not happen in Carbon host apps.

The simple workaround is to install an event handler proc that handles the kNavCBTerminate selector and moves the window way out to the middle of nowhere, offscreen. You should be installing an event handler anyway to get the movable modal and resizable file panel, so it's not much work, just a couple lines.

Cheers
-chris
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: open dialog with preview
  • Next by Date: Input AUs
  • Previous by thread: Re: open dialog with preview
  • Next by thread: Input AUs
  • Index(es):
    • Date
    • Thread