Display a modal window in a single cocoa app

Hi,
I have a single cocoa app(non document base), I need to display another window modally, any hint how to do this? thanks,
Angelo

xcode960,
my friend, you are using outdated terminology. this is probably causing you no end of challenges.
the concept of a modal window has been laid to rest. why? well OS X is a true multi-tasking OS. so there are no windows That will grab the whole screen and not let it go. You can hack one up, but it is simply bad UI design, and leads to a poor user experience.
so lets talk about options:
1. Sheets. Apple developed the sheet concept to replace modal dialogs. it requires user input JUST LIKE modal windows, but sheets are Application specific and do not upset the multitasking nature of OS X.
2. tabs. you can make a hidden tabview with 2 views in your main window. the first one contains your application's ui, the second has your modal content. The tabs are hidden, which allows you to programatically switch them. This lets you take the UI away from the user and require them to deal with your modal content before you allow them to continue.
I'm sure there are many other ways of going about this, but the most important thing to be aware of is that Modal windows are highly discouraged these days, so support for them is NOT available.

Similar Messages

  • Not a single cocoa app opening after the 10.5.6 update

    I have a serious problem. Not a single cocoa application (Safari, Mail, Pages, etc.) will open for me. It will bounce in the dock and then crash. The Carbon apps are fine (iTunes, FFox, Finder) I have no idea why. Any ideas?

    I agree that repairing permissions before & after installing an update is more of a voodoo-like ritual than sound advice based solidly on fact.
    Once, in the early days of OS X, it was not entirely uncommon for certain non-Apple product installers to set permissions to unusual values to facilitate installing some app & then fail to reset them afterwards, or to reset some file permissions they should not. This at least explains why the advice to repair permissions after an update became common -- some users have an unfortunate habit of thinking that what fixes one specific issue might have some mysterious ability to fix others, so they add it to a ritualistic formula designed to prevent any problems, whether still applicable to the current software climate or not.
    Just to remove any lingering doubt about this, users should note that AFAIK, no Apple product installer ever has been shown to do this & current OS updaters certainly don't. As mentioned, some users confuse innocuous warnings with mis-set permissions, which seems to perpetuate the idea that the OS update installers frequently cause permissions problems, but this is a misconception.
    What is worth doing prior to installing an OS update is Disk Utility's "Verify Disk" test, & if it shows anything is amiss, rebooting from the installer DVD & running the "Repair Disk" step. This is because disk file system problems can cause an install to fail, often by corrupting essential OS files.

  • JRE 1.5.0_13  problem with Modal Window

    We have stand alone browser based application built on HTML, Javascript, and Java (non-GUI applet). We were running the Sun JRE 1.4.2_06, but have recently upgarded to 1.5.0_13. As soon as we upgraded to 1.5, started experiencing the below problem -
    The HTML screen displays a modal windows which makes a Java call to the MQClient software through Applet (via OBJECT Tag) to communicate with mainframe. The MQClient Java code seems to be blocked until the user clicks on any other area of the screen to shift the focus from our modal dialog to any other window (either clicking on the task bar, clicking on another window in the background, or hitting Alt/F10 key).
    The same code runs fine with JRE 1.4.2_06.
    Based on a further analysis+ it seems like there is an issue, when a modal html window makes a java call for creating a socket connection (other then localhost). In this scenario, socket is never created unless you drag a modal window or move a focus away from a modal window.
    Above problem seems to be resolved with JRE 1.6.0_10.
    Edited by: Ashwani_Saxena123 on Oct 31, 2008 5:42 AM

    Ashwani_Saxena123 wrote:
    Ours is a stand-alone browser based (IE 6.0) application, which communicates between JavaScript to Java using Applet (with Object Id tag).Why? What for?
    .. All the Java class files are bundled in a zip file under different packages and Zip file path is provided at run time when Application starts. It is safest to distribute classes and application resources as Jar files. One reason is that Sun decided to not bother even checking Zips for digital signatures, so no trusted app. can afford to try loading Zip files.
    ..The path of Zip file is at C:\EALife\Program ...Whoa up a second there!
    If this applet is only ever being loaded on the same machine as the codebase, why is it an applet at all? It would make more sense to distribute/install an application.
    If this applet is being loaded by PCs at remote locations, then the will probably not have a C:\EALife\Program path at all (especially is they use Ubuntu, like here).
    ..and home directory path is C:\EAFramework\Program\Screens. We are putting all paths in a single variable (APP_CLASS_PATH) and using that variable as a parameter value in Object Id tag for creating an Applet. Below is the code snnipet for Object Id tag -Sun has championed a script to use for applet versioning and writing the applet element. I suggest you use it instead, it is known as 'deployJava.js' - see top hit at Google for details.

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • Opening another Page in Modal Window

    How to open another page in a modal window by using JQuery. Also I need to pass few parameters to the other page.
    Any idea?
    Thanks
    Deb

    The definition of a modal window is a single window opened on top of other windows, so it gets the attention and is acted upon.. Like a message window asking if you want to delete all records waiting for a Yes or No answer..
    Thank you,
    Tony Miller
    Webster, TX
    A lady came up to me on the street, pointed at my suede jacket and said "Do you know a cow was murdered to make that jacket?"
    "I didn't know there were any witnesses", I replied " Now I'll have to kill you too"

  • Adobe Form NOT getting displayed in WebDynpro Modal Window  (Pop Up)

    Hi,
    I am trying to display the table data in a Interactive Form. I have used TABLE UI element in Interactive Form. When the user clicks on a EXPORT button this form is displayed in a pop up window (Modal Window). This form is not getting displayed for most of the users. In some PC's it is getting displayed, strange is all their browser versions and OS versions are same.
    Portal Version: NW04s SP8
    NWDS Version : NW04s SP8
    Adobe Live Designer: 7.1
    Acrobat Reader: 7.0.8
    I tried changing the display type (property of Interactive Form Element) to NATIVE, it is not working at all. If i change it to "activeX", then it works in some PC's.No logs are found in the server as well as in the client PC as well.
    Please let me know if you have come across this problem, looking forward to your solution.
    Thanks
    Senthil

    Hi,
    It seems to be available only for ABAP version. I cant find it in the java version.. check this..
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/656442a1c4de54e10000000a155106/frameset.htm">Help SAP Link for Java Reference</a>
    And even in ABAP , the pre-requisite seems to be installation of ACF,
    The exact words
    <i>
      Adobe Reader (>= 7.0) and, if you are creating interactive forms, also the ActiveX Control Framework (ACF) installed on your computer. Also see SAP note 834573.</i>

  • Adobe Form not getting displayed in WebDynpro Modal Window

    Hi,
    I am trying to display the table data in a Interactive Form. I have used TABLE UI element in Interactive Form. When the user clicks on a EXPORT button this form is displayed in a pop up window (Modal Window). This form is not getting displayed for most of the users. In some PC's it is getting displayed, strange is all their browser versions and OS versions are same.
    Portal Version: NW04s SP8
    NWDS Version : NW04s SP8
    Adobe Live Designer: 7.1
    Acrobat Reader: 7.0.8
    I tried changing the display type (property of Interactive Form Element) to NATIVE, it is not working at all. If i change it to "activeX", then it works in some PC's.No logs are found in the server as well as in the client PC as well.
    Please let me know if you have come across this problem, looking forward to your solution.
    Thanks
    Senthil

    Hi,
    even though this is quite an old post, it still could be worth for someone to have a look at Note 1342716.
    Michal

  • Save As Page displays below Adobe Reader X in Modal window when selecting SAVE

    Reports are being viewed in the explorer using Adobe Reader this opens in a Modal window which is a requirement. When selecting the 'Save a Copy'  button from any location on the page using the floating toolbar or standard toolbar the Save As page is being opened under the Model window and the focus remains on the main page so the save location or any button on the page cannot be used.
    There is a work around selecting any option that launched a popup screen from the reader such as Document Properties and then the page is closed selecting Save a copy will open the page on the top,
    This only seems to be a issue when using IE9 when running the same application and Adobe reader version in IE8 no issue is seen. Other popup screen such as Print have no issue and as mentioned once one of these screens are launched the save as displays on top.
    Current version of
    Adobe Reader 10.1.1,
    IE9 9.0.8112.16421
    Windows 7 64bit.
    Using Adobe Reader 9 seems to have similar issues and the page needs to be closed via the task manager.
    We require the webpage to display in a Modal window is there any suggestions on how to ensure the Save As Page is displayed on the top in focus.

    Reader cannot rotates pages in a document, but it can rotate the view. This is not something that can be saved. Adobe Acrobat can rotate pages and save the document, but not Reader.

  • Is there such a setting that in entire site opens the edit,display,new form in the modal windows?

    Hi all!
    I know about setting for lists, but 
    Is there such a setting that in entire site opens the edit,display,new form in the modal windows?

    No, just per list, as you already knew
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • How to show modal window without popup in a web page using javascript

    Hi,
    How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
    pls help me.....

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • How do I include/show data from a child table in a Modal Window?

    How do I show data from a child table in a Modal Window?
    I have an application where each customer might have multiple addresses and phone numbers which are stored in child tables.  When I show the customer in a record on a screen I can place a Modal Window button on the screen which can be pushed at runtime
    to display detail information for the particular customer parent table which works great. However, I would also like to display the data from the address and phone number child tables. Is there a way to do that?  Or can I just launch a hole separate screen
    which would automatically display the needed data for the particular customer? If yes, how? 
    Thank you for any help.

    I am not even sure how to describe my situation in such a way that this forum incident would be of benefit to other people as I think it is fairly unconventional. 
    The “add contactaddress” link does not show up on the right.  
    The contactaddress table is a child of the contact table. 
    The contact table is a child of the contactlink table.
    And the contactlink table is a child of the person table.
    I have it set up this way because the contact in the contact table may be a contact to multiple persons in the person table and I do not want to re-enter the contact info every time the contact is used. 
    In the list detail screen of the person table I can see the contactlink child collection so that I can see the name of the person in the contact table at runtime. However, the contactaddress collection is not related to the person table so it does not show
    up on the right hand side of the design screen as an “add contactaddress”; nor is there “add contact” link.
    What I would like to happen during runtime is that it is not necessary to switch screens from the person list detail screen to a contact list detail screen to see the addresses and phone numbers for the contact.
     Is my setup unnecessarily convoluted? Is there a better way? Please see the two snapshots below.
    Perhaps there is a way to call up a Detail screen from the List Detail at runtime? 
    Anyway, if you are still reading, thank you very much for your help.   
    jjjjj

  • Creation of blocking modal windows

    Hi
    I’m struggling, for sometime now, with the famous
    a-synchronic behavior of flex.
    I’m trying to develop a function that resembles the
    famous VB “MsgBox ()” and opens a UI container (e.g.
    like a Title window) in Modal mode while blocking the continuation
    of the rest of the code until the UI closes.
    I would like to be able to write something similar to the
    following set of commands:
    MsgBoxInFlex( …..); \\ blocks operation until UI closes
    if (x=……)
    Problem – as far as I know – is that such a call
    to a function (i.e. MsgBoxInFlex) returns the control to the
    calling code after the function has finished with no connection to
    UI container status. This means that the if command will be running
    as soon as the UI will be created and displayed.
    Is there a way to both create and work with on the UI
    container before the MsgBoxInFlex function returns?
    Is there a way to return after a different event - such as
    form closure?
    Is there a way to capture and block the creation completed
    event from being transmitted and decide on when to send it?
    Any ideas will be welcomed.
    Thanks
    Raz

    Thanks for your response –
    The problem with using popup modal windows (such as Alert) is
    that the calling program does not stop from executing while in VB
    (or in other tools) the application waits for the Modal window
    thread to return.
    Raz

  • Non Modal Window Popup BSP View

    Hi,
    I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
    I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
    comp_controller->window_manager->create_popup( ).
    However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
    Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
    Thank you.

    Hi,
    I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
    I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
    comp_controller->window_manager->create_popup( ).
    However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
    Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
    Thank you.

  • Adobe Form in Modal Window

    Hi all,
    I am displaying an Adobe Form in a pop up modal window. The display type of the Adobe form is native. However when the popup window shows up, the adobe form is not shown properly.
    There is no problem if i set the displayType of the adobe form on the view as ActiveX. However there is a constraint that the displayType should be native.
    Has anyone encountered such problem before?

    Only in popups, in SP19 forms were displayed in popups in firefox and IE, in SP21 only in IE. I know about this note, but in SP19 everything was working OK, so I think on SP21 should this popup functionality remain :). Or what is the reason to remove this functionality for firefox in SP21?
    Many thanks for reply

  • [CS3] Is there a way to stop the modal alert on EVERY SINGLE ERROR during a bulk update?

    I've inherited quite a mess I'll admit -- I've got ~ 8000 pages each with different dreamweaver templates with the entire site being in a varying state of disrepair.  I need to perform a global change -- I'm thinking the way to go about this is to update the templates (thre are ~40 of them, not nested) and let the process run through. However, I've encountered difficulties.
    After about ~2300 files loaded into the site cache, dreamweaver crashes -- there is no error, it's an unhandled exception.... it consistently crashes at this point.  I'm not sure if this is a specific page causing the problem, or if it's that I'm trying to load 8K files into the site cache....  So anyway, with it crashing consistently trying to build the site cache, I basically press "stop" whenever it tries, and that seems to abort the building and the 'update pages' screen comes up and tries to update the files.
    My next problem is that there are countless errors in each of these pages and templates -- ranging from the 'template not found' when an old or outdated file is referencing a template that has been deleted -- to various mismatched head or body tags.  Of course, and this is probably the most annoying thing I've ever encountered,  this bulk process that should run over 1000s of files without interaction seems to feel the need to give me a modal alert for every single error.  The process stops until I press 'OK'
    I'm talking update 5-10 files, error... hit 'return', another 5-10 files are processed, another alert, hit 'return' -- rinse and repeat.  Oh, and I made the mistake one time of hitting 'return' one too many times -- oh yes, this will STOP the current update because default focus is on the 'Stop' button, for whatever reason. and if I want to get the rest of the files, I need to run it again -- from the start.
    Is there a way to silence these errors?   They're already showing up in the log, I wouldn't mind going through it once the entire site has been udpated to clean thing up ... but I'm updating quite literally thousands of pages here, I would wager that 1/3 of them have some form of an error on it... do I really need to press "OK" two thousand times to do a bulk update with this program?
    Any tips from the pros?

    This one might help.
    Allow configuration of Automatic Updates in Windows 8 and Windows Server 2012
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Maybe you are looking for

  • Mini shows up in Windows, but not in iTunes

    It shows up in My Computer, but not in iTunes. I honestly don't feel like trying anything on the website, because I have purchased music, and my cd burner is not working. I have now messed up iTunes by trying to reinstall it. Now whenever I open iTun

  • Mail Adapter ContentDisposition attachment

    Hello, We have goot a big Problem with the Mail-Adapter at PI. The Adapter generated: MIME-Version: 1.0 Content-ID: <mail-9674f6c0d03711de86dc00144fb7b1f0> Content-Disposition: inline Content-Type: multipart/mixed; boundary="AaBb--984dfgeSSd3532" Con

  • Error message on login to XSAN MDC and clients

    Hi, I installed a new XSAN system with SLServer,10.6.1 and XSAN 2.2 then updated XSAN to 2.2.1. The system works fine, the only thing whenever I login from client or server I have an error message popping for all FC attached LUNs, " the disk you inse

  • Table Border in Keynote

    Can someones please help me figure out how to add a line border/outline to a table in Keynote 6.2? I recently upgraded and can't for the life of me figure this out. I have tried what I assume should be the way to do it, but it doesn't do anything. Wh

  • Any config.xml fields not viewable/editable in admin console?

    While reading through the WL 10.3 docs, I discovered something very unexpected. There are some attributes that you can define in the config.xml that are not viewable or editable in the admin console. I found this in the "Programming WebLogic JTA" man