Speaking of open file dialogs...
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.