[Mac/CC 2014] modal dialogs can't be displayed

Hi everybody,
I have ported a plugin from CS6 to CC2014, which works fine for almost everything, except one. Modal dialogs seems not to work anymore. For example, this code:
CAlert::InformationAlert(PMString("Hey, display me!"));
makes InDesign freezing. More precisely, InDesign displays a while rectangle, which seems to be the modal dialog. But there is nothing more, juste this white rectangle. I can move it, but can't interact with it. As it is a modal dialog, the application refuses all further interaction, and I can't close that modal.
I have noticed this behavior was the same with, for example, a Yes/No modal dialog. I suppose this happens on every modal dialog types.
Is there anything that can cause a modal dialog not to be able to display correctly?
Some pieces of informations on versions :
OS : Mac OS 10.9.4
InDesign : 10.1.0.71
Thanks to anybody providing any piece of advice.
Rémi

Must have opened my eyes after waking up...
I think I guessed what happens. This modal dialog is called from a model plugin, which works in CS6. I guess Adobe has removed support on anything that is UI-related in model plugin. But instead of generating an error, it makes some mess. I'll try to move the piece of code surrounding the modal dialog call to my UI plugin and see what happens.

Similar Messages

  • Can I and how do connect power mac to imac so I can use imac display

    Is there a way I can use my imac and power mac together.
    My purpose is to use the display of the imac when using the power mac.
    If it possible please be so kind to tell me how to.
    Thank you!

    Hi Howard Herrick;
    I doubt it because to the best of my knowledge you are only going to find connectors on the iMac to connect and external monitor to it not to connect another computer to the iMac's screen.
    Allan

  • Random Playback glitches with Premiere CC 7.2.2 on Mac Pro 2014

    I am having random playback glitches on my Mac Pro 2014. I can't figure out the cause since its only in the playback and export of the footage. The source footage is glitch free.
    I have noticed these two warnings when loading Premiere and Encode.
    [cl_invalid_operation] OpenCL Error : Failed to retrieve device information! Invalid enumerated value!
    Are the glitches due to this OpenCL Error and how can I fix it?

    Ya, I'm very confused that this glitch is so below the radar. I would have imagine the editors would be up in arms. Unless they found some solution for it that's out there somewhere.
    Because paying so much for a system which can't be fully utilized in a production is definitely cause for concern.

  • Open Modal Dialog in Photoshop (Mac)

    I can't seem to open a modal dialog in Photoshop on the Mac with the CS SDK. The code works fine in InDesign. In Photoshop, the modality is there (the application responds to mouse clicks with a bell) but the window is not visible. Here is my mx:WindowedApplication:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Script>
              <![CDATA[
                   import com.adobe.csxs.types.CSXSWindowType;
                   import mx.core.Window;
                   protected function onClick(event:MouseEvent):void
                        var w:Window = new TestDialog();
                        if (w) {
                             w.type = CSXSWindowType.MODAL_DIALOG;
                             w.resizable = false;
                             w.open();
              ]]>
         </mx:Script>
         <mx:Button x="10" y="10" label="Open Popup" click="onClick(event)"/>
    </mx:WindowedApplication>
    The Window itself is more or less copied from the "MakeSideHeads" sample project:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Window xmlns:mx="http://www.adobe.com/2006/mxml"
                 title="Test"
                 titleAlignment="center"
                 layout="absolute"
                 width="300"
                 height="100"
                 showStatusBar="false">
         <mx:Script>
              <![CDATA[
                   private function myCloseWindow():void{
                        this.close();
              ]]>
         </mx:Script>
         <mx:Canvas width="100%" height="100%" id="TestPanel" backgroundColor="#D2D2D2">
              <mx:VBox verticalAlign="middle" horizontalAlign="center" height="100%" width="100%">
                   <mx:HBox height ="90%" width="100%">
                        <mx:Text width="100%" height="100%" text="Some Text"/>
                   </mx:HBox>
                   <mx:HBox  height = "10%" horizontalAlign="center">
                        <mx:Button id="CloseButton" label="Close" click="myCloseWindow()" />
                   </mx:HBox>
              </mx:VBox>
         </mx:Canvas>
    </mx:Window>
    This seems like quite a significant bug. Or am I missing something?

    Hello,
    I've tested this one and it works.
    main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <csxs:CSXSWindowedApplication xmlns:csxs="com.adobe.csxs.core.*"
         xmlns:mx="http://www.adobe.com/2006/mxml"
         historyManagementEnabled="false">
         <mx:Script>
              <![CDATA[
                   import com.adobe.csxs.types.CSXSWindowType;
                   import mx.core.Window;
                   import ModalDialog;
                   public function showModal():void
                        var window:Window = new ModalDialog;
                        window.type = CSXSWindowType.MODAL_DIALOG;
                        window.resizable = false;
                        window.open();
              ]]>
         </mx:Script>     
              <mx:Button label="Display Modal Dialog" click="showModal()"/>          
    </csxs:CSXSWindowedApplication>
    The following is the ModalDialog.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Window
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         width="300"
         height="200"
         creationComplete="onCreationComplete()"
         title="Modal Dialog"
         >
         <mx:Script>
              <![CDATA[
                   private function onCreationComplete():void
                        //Center the window on the screen
                        var screenBounds:Rectangle = Screen.mainScreen.bounds;
                        nativeWindow.x = (screenBounds.width - nativeWindow.width) / 2;
                        nativeWindow.y = (screenBounds.height - nativeWindow.height) / 2;
              ]]>
         </mx:Script>
         <mx:VBox verticalAlign="middle" textAlign="center" horizontalAlign="center">
              <mx:HBox horizontalAlign="center">
                   <mx:Label text = "This is an example of a modal dialog box."/>
              </mx:HBox>
              <mx:HBox horizontalAlign="center">
                   <mx:Button label = "Close" click="close()"/>
              </mx:HBox>
         </mx:VBox>
    </mx:Window>

  • ADM CheckBox on Mac OS X on Modal Dialog

    I am trying to add a modal dialog under the Illustrator menu for the plugin I am writing.
    The modal dialog is showing up and the popups I am using are working correctly but I am having problems with my checkbox. When I call SetBooleanValue on my CheckBox If I pass in false or 0 it seems okay but if I call SetBooleanValue to set the checkbox to checked by passing true the checkbox does not appear. I believe the checkbox is checked because I need to click on it twice to get the checkbox to appear. In Illustrator I can check and uncheck the checkbox manually fine. When I try and use GetBooleanValue to get my value of the checked item it always returns 128.
    The behavior is the same under AI 3 or AI 4. I am using a DLOG resource in a adm.rsrc file that I have added to my project. Any help would be appreciated.
    /// setting value
    ADMBoolean checkBoxValue = lBoolValue; // 0 or 1
    sADMItem->SetBooleanValue(sADMDialog->GetItem(dialog, kStoreTextItem) , checkBoxValue);
    /// gettting value
    ADMBoolean bShouldStoreText = sADMItem->GetBooleanValue(sADMDialog->GetItem(thisDialog, kStoreTextItem));
    /// bShouldStoreText always returns 128
    Grant Hickey

    Why is it so hard to specify ADM item in MAC resource file?
    I want to create a check box
    resource 'CNTL' (someItemId, purgeable) {
        {04, 14, 18, 14}, // top, left, bottom, right
        visible,
        ItemID, // ProcID
        0,
    The ItemID specifies the checkbox, but where do you find all these IDs?
    The only place I can find is in the samples.
    No documentation for this type of stuff anywhere!
    I don't know how you guys tolerated this rubbish all these years.
    Please help!!!!!!

  • How can I control modal dialogs in Applescript without a mouse?

    I am trying to use a Griffin PowerMate button to select between two options in an Applescript modal dialog and cannot seem to figure out how to do this. I can set a default button, but I want the user to select between two options (shifting the highlighted button) via the PowerMate. Does anyone have a suggestion?
    I can program the PowerMate to send/emulate a particular keystroke, but I do not know how to make the standard Applescript dialog respond to a keystroke, only a mouse action. I'm trying to create a mouseless interface.
    In short, I want the dialog respond to "Twist to the left and press the button to select A, Twist to the right and press the button to select B." Thoughts?
    Thank you.

    Your System Preferences > Keyboard Shortcuts > Full Keyboard Access preference will need to be set to "all controls", but it also depends on where the particular button is located in the dialog.  The tab key will highlight the buttons from left to right, shift-tab will highlight the buttons from right to left, and the spacebar will "press" the currently highlighted button.  In addition, the escape key will choose the Cancel button (if there is one), and the return key will choose the default button (if a default has been set the button itself will be lit).

  • Modal dialog bug in Illustrator CS3, CS4 (Mac)

    Using the latest point version of Illustrator CS3 and a newly installed copy of Illustrator CS4, I have noticed a consistent bug on at least two different Macs (10.5.5). This bug pops up when you have a text item with optical kerning, and you try to manually adjust the kerning between characters. The value in the kerning field of the Character Panel has parenthesis around the numbers to show that it is a calculated value. If you change the numbers, but accidentally leave the parentheses, a modal dialog pops up saying, "Invalid numeric value." It is not possible to dismiss this dialog, and it is necessary to force quit the program.
    When the text is Auto-kerned, and one makes the same mistake, the parentheses are automatically removed for you.
    Using Illustrator CS3 in Windows, the "Invalid numeric value" dialog pops up under the above scenario; however, one is able to dismiss this dialog and resume working.

    I wasn't quite sure where to submit bug reports, which is why I posted here. However, I finally did find the bug report form on the Feedback tab of Adobe's Contact page. So I just reported this bug.

  • Can't have multiple modal dialogs?  What am I doing wrong?

    The following applet is a VERY stripped down version of what I am writing. I have an applet which creates modal dialog in which a user will enter data, then if the user tries to close without saving, I pop up another modal dialog to ask the user to save. Everything is fine that far, then, when the user dismisses that dialog, for example (with Cancel) or pressing the X, things look fine, it goes back to the first modal dialog, but that dialog is no longer modal! I can access the underlying applet. Here is a VERY stripped down version. What am I doing wrong? Help! Thanks!
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.lang.*;
    import java.net.*;
    import javax.help.*;
    import javax.swing.*;
    import java.util.*;
    public class SherlockApplet extends JApplet
         public void init()
         // get root frame of applet
    Component component = this;
    while (component.getParent() != null)
    component = component.getParent();
    Frame appletFrame = (Frame) component;
    // create a modal dialog with the root frame as the parent
    JDialog firstModalDialog = new JDialog(appletFrame);
         firstModalDialog.setModal(true);
         firstModalDialog.setSize(200, 200);
         // create another modal dialog with the first dialog as the parent
         final JDialog secondModalDialog = new JDialog(firstModalDialog);
         secondModalDialog.setModal(true);
         secondModalDialog.setSize(100, 100);
         // add a listener to pop up the second modal dialog when we try to close the first
         firstModalDialog.addWindowListener(
    new WindowAdapter()
    public void windowClosing(WindowEvent e)
    secondModalDialog.show();
    // make sure not to close the first dialog if the user clicks the X
    firstModalDialog.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
         // show the first dialog
         firstModalDialog.show();
    }

    Good call dchsw, I tried 1.4.1_01 jre and it worked. If you run it with 1.3.0_01 jre you will see my problem. The problem for us is, we are stuck with 1.3.0_01 for our next release at least, due to Sun's decision to change event handling for java 1.4 jre and not make it backward compatible. I might have to hack my way around this one. Any other suggestions?
    Thanks

  • How to create a modal dialog, which I can still interact with document when the dialog is show.

    HI,
        Now, I am developing an automation plugin, and want to create a modal dialog, which I still can interact with document when the dialog is show.
        I find photoshop has some modal dialog have this function, such as the dialog of Customize Proof Condition and the dialog of Color Settings. Are these dialogs not modal dialog?
         Thanks!

    The whole point of a modal dialog is that you cannot interact with other things while it is active.
    And Photoshop does not support plugins accessing the rest of Photoshop while any plugin UI is active.

  • You too can display non-modal dialog boxes: LrDialogs.presentFloatingDialog

    Undocumented function: LrDialogs.presentFloatingDialog
    ref: http://feedback.photoshop.com/photoshop_family/topics/sdk_lrdialogs_presentfloatingdialog_ and_showstringsdialog_undocumented
    This works for displaying non-modal dialog box:
    LrFunctionContext.postAsyncTaskWithContext( "test", function( context )
        local LrPhotoPictureView = import 'LrPhotoPictureView'
        local photo = catalog:getTargetPhoto()
        local pictureView = LrPhotoPictureView.makePhotoPictureView{
              width = 400, height = 400, photo = photo,
        local result = LrDialogs.presentFloatingDialog {
            title = "Thumbnail test",
            background_color = LrColor ("white"), -- required for (uncolored) static_text display, else inside of box is black and so can't see black text.
            contents = vf:column {
                vf:static_text {
                    title = photo:getFormattedMetadata ("fileName"),
                pictureView,
                --vf:edit_field { - no sirve, presumably keystrokes are not trapped by box.
                --    bind_to_object = prefs,
                --    value = app:getGlobalPrefBinding( 'tempForTest' ),
                vf:push_button {
                    title = "Click me",
                    action = function( button )
                        app:show{ info="Pushed" } -- glorified call to LrDialogs.presentModalDialog - works.
                    end,
        -- LrDialogs( app:getGlobalPref( 'tempForTest' ), result ) -- no sirve.
    end )
    Enjoy!
    Rob

    jarnoh wrote:
    there is no way to activate previously opened dialog?
    I assume that to be the case, and so it takes a moment to come up if there is much contents.
    jarnoh wrote:
    Doesn't seem to be really useful
    For me, it would be very useful, if it was reliable, but so far, not so good.
    UPDATE: Bug I thought was in non-modal dialog is also in modal dialog (scrolled_view must not be followed by another components in tabbed container - see comments in code below):
    LrFunctionContext.postAsyncTaskWithContext( "tt", function( context )
        local props = LrBinding.makePropertyTable( context )
        props.tv = 0
        local vi = {
            vf:tab_view {
                vf:tab_view_item {
                    identifier = "t1",
                    title = "T1",
                    vf:static_text {
                        title = "temp1"
                vf:tab_view_item {
                    identifier = "t2",
                    title = "T2",
                    vf:scrolled_view {
                        vf:slider {
                            bind_to_object = props,
                            value = LrView.bind( 'tv' ),        
                    -- with this here, Lr crashes after adjusting slider and then switching tabs - comment it out, and all is well:
                    --vf:static_text {
                    --    title = "this cant be here",
        LrDialogs.presentModalDialog {
            title = "test",
            contents = vf:view( vi )
    end )
    R
    Message was edited by: Rob Cole

  • Can a dialog act as parent to two modal dialogs?

    i have a dialog that has to act as parent to two modal dialogs that are displayed by different threads. Is there any possible way for both dialogs to be displayed at the same time?

    I just found this which looks like it does what I would like. I'll happily pay the $25 if there isn't a free solution and it does what I want.
    http://rogueamoeba.com/airfoil/mac/

  • Can't access Modal dialog box via Powershell script

    Hi,
    I have a powershell script to login to an IE website and everything works fine excepting when I call a modal dialog box.  I've attached the line where the modula dialog is invoked.  When it gets to this part the script hangs and I'm unable
    to get past this.  I've googled a few articles where it suggests I should run an a scheduled task to scrape for the modal dialog box but I've tried it without much luck.  If you can please give me some pointers on resolving this issue. 
    Thnx
    Sue.
    $ie.Document.getElementsByTagName("button") | ? { $_.innerText -eq 'UNLOCK User' } | Select-Object -first 1 | % { $_.Click() }
    Sue

    Hi,
    I have a powershell script to login to an IE website and everything works fine excepting when I call a modal dialog box.  I've attached the line where the modula dialog is invoked.  When it gets to this part the script hangs and I'm unable
    to get past this.  I've googled a few articles where it suggests I should run an a scheduled task to scrape for the modal dialog box but I've tried it without much luck.  If you can please give me some pointers on resolving this issue. 
    Thnx
    Sue.
    $ie.Document.getElementsByTagName("button") | ? { $_.innerText -eq 'UNLOCK User' } | Select-Object -first 1 | % { $_.Click() }
    Sue

  • Is there a fix for modal dialogs opening behind palettes -cs6 -osx 10.6.8

    Is there a fix for modal dialogs open behind palettes in
    Photoshop cs6 13.0 (createive cloud update) + OSX 10.6.8 Snow Leopard on MacBook Pro? 
    ( I am using 2 monitors where the second monitor is set to be the menu display.  cs4 does not exhibit this bug. )
    Toggling the Application Frame off improves the hiding 'feature' but this does not include the desired continuous floating in front of palettes in all circumstances.
    An example is Blending Options, then chose Stroke, then chose the Color Picker.  After clicking OK, the Blending Options dialog now sits behind the palettes.  One trick is to click on another app, then back to cs6 to force a window redraw.
    It sure would help me if this could be solved.  I am preparing educational videos and this display bug makes things very troublesome.
    Thanks for any help.  If I find a solution, I will post to this thread so everyone can benefit.

    The setting for the graphics check box Does Not make a difference.  If I have a new document window open, then add a layer, then open the blending options > drop shadow > edit the color > the chooser dialog opens, and immediately both dialog windows drop behind the palettes AND any document windows.
    The same behavior for the Preferences dialog > guides > color.
    The quick workaround is to click another app, then back to CS6.  A real pain, of course.
    It is only a factor when opening a second (child) dialog box.
    Other CS6 apps do work correctly (eg. FW AE)
    I have yet to get a handle on this.  Mac OSX 10.6.8    CS6 13.0  x64
    Thanks for your replies, and the long reply time for me was a vaction away from the office.

  • Mac Pro 2014 USB Keyboard not working for log-in.

    I have a Mac Pro 2014 with two thunderbolt displays and an apple USB keyboard.  Whenever I boot up the computer the keyboard doesn't seem to work at first.  Often I get hung up on the log-in screen pushing keys to no effect until the bluetooth keyboard dialog comes up.  Then after that sits fruitlessly looking for a non-existent keyboard for about 30sec the USB keyboard will start to work.  In total I'd say this delays logging in by about a minute.  During this whole time the USB mouse and Wacom tablet work.  After logging in everything works fine.
    Also this might be related, if the computer goes to sleep it can take several attempts to wake it up before I'll get a login screen.

    Mine was also fresh out of the box. My reseller in Iceland could verify this and this was the solution. I first thought it was the Icelandic keyboard. Reported it as bug.

  • Modal dialog question

    I'm working with files that have their assets managed via a DAM that wants the user to log in whenever a file is opened. This log-in window doesn't respect the "script preferences/never interact" direction and pops up with every new file opened in a batch process, requiring the user to dismiss each one so it can go on process each file.
    I can see how to check by script whether there's a modal dialog active by checking the modal state, but if that's showing as "true" is there a way via script to target the dialog and dismiss it?
    Failing this, I'll have to enforce that users either log into this system or disable the plug-ins, but I was hoping to get something that would require no action on their part other than running the script.
    InDesign CS5.5, Mac OX 10.6.8, working on an AppleScript, but I'd also be happy to hear any JavaScript ideas!
    Thanks,
    Mary

    Hey, Trevor, thanks for the ideas. I'm not quite "there" yet, but I think I'm a little closer. The following works, to a point:
    tell application "System Events"
              tell process "InDesign"
         tell window "User Authentication"
            click button 1  
            -- click button "Cancel"
            -- tell button 1 to perform action "AXPress"
         end tell
              end tell
    end tell
    Any of those button statements does visibly click that button -- that is, I can see the "Cancel" button flash blue for a moment. But that's all it does. It doesn't actually cancel the dialog.
    Since this was for a rush, one-off job, I went with the workaround of telling the user they had to log into the management system so the login screen would stop popping up. It's not elegant, but it gets the job done.
    Thanks much for the assistance, I appreciate it.
    Mary

Maybe you are looking for

  • Execution from right to left : a=b=c;

    Help! I am using a tutorial to study for the certification exam. Unfortunately, I do not understand the answer of a very simple question. Can you give me a hand on this one? ************* This is the Question of the tutorial *************************

  • Pop up view in Web Dynpro for ABAP

    Hi, I am new in web dynpro for ABAP. Now I am facing a problem of how to make a view pop up. Since I had already create some table in this view. I just want to make it pop up after I click a button. But I had no idea to do it, could anyone tell me ho

  • HELP MAC EXPERTS!

    Hi. I have a 2011 Macbook pro 13". Im running lion. I have used Lion for quite a while with NO audio issues. My problem is that i get no audio when I have headphones plugged in. The internal speakers still work fine tho. All system preferences are co

  • Need user exit or BADI for NMM1

    Hi, I need user exit/BADI  for transaction NMM1. We need to know the material status of material to determine whether to send a Reservation or PR. Presently it is determining depending on material type . Regards, Sekhar Raju.

  • Swf sound files stopped working with latest player!

    Hi, somebody can tell me if there is a bug in the latest adobre swf player? Since 3 days my birdsound site (see http://www.indeks.pt/cantodepassaros/indexuk.htm) stopped working properly. Sounds from swf files come out completely distorted, nothing w