Opening a window in another .nib

Hi guys,
I have two .nib files, the default MainMenu and the MyDocument Interface Builder files here, but when I click a button (in this case "New file") I want the MainMenu window to activate the window that's inside the MyDocument file.
How can I do this?
Thanks in advance,
Ricky.

Is your "New File" button on a window inside the MainMenu.nib file, and is the purpose of button to create a new blank document?
If so, you need to set the buttons target to first responder. You probably want to set the button's action to the same as the File > New menu command (I don't remember of the top of my head what the action name is).

Similar Messages

  • Opening one window from another

    I've created a method which opens a window that takes an input from the user and then closes and returns the input to the main program. When I called this method from a test program it seemed to work perfectly but when I tried to call it from my main GUI via an action listener on a button it just seems to crash.
    So my input window would wait until the return button was pressed, I set up a while loop which delays the program until a flag is changed by pressing the return button. As far as I can tell it is this while loop which is causing the problem. Has anyone got any idea why this method works with my test program but not through a GUI? I expect that there is also a better way of retrieving this information from my input window and that I have probably just forgotten something very simple. If anyone has got any suggestions I would be very grateful.
    Thanks, Tom

    Hi Tom,
    the while loop is not very suitable for this situation.
    The best solution, in my opinion, is to attach ActionListener to the 'submit' or 'ok' button of your child window, from the main GUI.
    Let's say A is your main GUI class and B is the JDialog (better if modal) that should return the value. Proceed as following:
    1. in the class B implement a method that attaches a listener l to the Ok button
    public void addOkListener(ActionListener l)
      okButton.addActionListener(l);
    }2. in the class A, create a ActionListener object like:
    ActionListener al = new ActionListener()
      public void actionPerformed(ActionEvent)
          do whatever you like, this code is executed when the user clicks
          on the button OK in the JDialog.
          For example you may want to retrieve the value from the JDialog:
          System.out.println(b.getMyValue());
    }3. in the class A, attach the listener to B:
      b.addOkListener(al);Antonio :)

  • Open portal window in another portal

    Hi all portal experts,
    I need connect from one portal to another one.
    Explanation: I need to create iview or something like that which will open another portal in my portal, but like another user. It have to connect automatically, and I can't see the user name and password. Can you help me where to start?
    Milos

    Hi Milos
                      If you mean that you want to share content of a second Portal onto yours then you can use the Federated Portal Concept.
    Please go throug SDN and you will find numerous documents regarding that.
    This could be a start:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/351402eb-0a01-0010-50ab-a85edf485856
    Or maybe you want a URL iview pointing to another portal.
    Cheers.
    Please award points for helpful answers.

  • How to open multiple windows from ALV?

    I have a button on each line of ALV.
    If the user clicks on the button on the first line, it shoud open a window in another session.
    Now the user will be able to click on the button on the next line and another window should popu up.
    Thus the user can compare the window contents and do the corrections.
    How to achive this opening of windows simultaneously?
    Thanks,
    Ven

    I tried the above function module and it does open anotehr session - but I am not able to pass values . I have to pass SAP Script texts and opent he window. but the above func mod calls t codes and allows bdcdata, messages or spa/gpa parameters only.
    So I am back with my question - how to open the session with the text lines?

  • I switched on my PC and there was an update for realplayer. Since then firefox will not load. It is running according to Task Manager. I've downloaded a another copy of the programme using IE but whilst it loaded as a programme, does not open a window.

    I switched on my PC and there was an update for realplayer. Since then firefox will not open as a window. It is running according to Task Manager. I've downloaded a another copy of the programme using IE but whilst it loaded as a programme, does not open a window.

    Hi again,
    Helps if I give the correct link ! <br/>The press shift button appears to still work, but the option to start in safe mode from the programs listing of a standard install I do not think exists anymore.
    Safe mode will start from a command line, (or a shortcut) and in some circumstances you may need to enter the full path name on a command or shortcut detailed instructions are at http://kb.mozillazine.org/Safe_mode
    Remember (at least at this stage) do not make changes when you get the options list, just click on the continue button.
    If you think that RealPlayer is causing the problem you could uninstall that for now.
    Firefox recent versions are 3.6 4.0 (and 5.0 in beta). There is some debate as to whether creating new profiles or re-installing Firefox is the simplest method of troubleshooting and solving some of these problems, personally I use multiple profiles and multiple versions of Firefox, and tend to forget the required procedures are less than straightforward. For now at least try [[safe mode]] again.
    * see also Instructions for [[installing a previous version of firefox]]

  • Moving tabs from one window to another makes the new window vanish. I have hot corners enabled so when I move up to the right corner of my display I can see all my open windows but when I click on the tab that I moved to make it its own window it vanishes

    Moving tabs from one window to another makes the new window vanish. I have hot corners enabled so when I move up to the right corner of my display I can see all my open windows but when I click on the tab that I moved to make it its own window it vanishes

    I came up with an alternative solution.
    Instead of actually trying to move the JInternalFrame from one JDesktopPane to another, I added a single, maximized JInternalFrame to the left side. When one of the right side frames is to be docked, I merely copy its ContentPane to the single JInternalFrame on the left, set the original to be non-visible, and adjust the properties of the JSplitPane to make the "docked" frame appear.
    When the "close" button on the docked frame is pressed, I simply undo this procedure to "undock" the frame and redisplay it on the right-hand side (with its content intact from the docked frame, but in its original position).

  • Unable to save document - Read Only or Open by another user error occurs when PDF is opened from Windows Explorer

    Adobe Pro XI  - using Windows 7 Pro OS
    When a PDF document is opened from Windows Explorer, and pages are added, deleted, notations made, any type of changes, it cannot be saved until Windows Explorer is fully closed.  If you try to save the document, you receive the following error - "The document could not be saved.  The file may be read-only, or another user may have it opened.  Please save the document with a different name or in a differnt folder. "   I have confirmed the document is not read only, it is not open by another user, and it is not open multiple times.  Once you fully close Windows Explorer, and try to save the document, it saves without a problem.
    Are there settings in either Adobe Pro XI or Windows that will allow you to save documents without closing Windows Explorer first?
    Thank you for any assistance you can provide.  This error is a frustration since I open all my documents through Windows Explorer.

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • I have multiple iPhoto libraries and when I selecting which library to view (hold down 'option' key and launch iPhoto from the dock) it automatically closes another open apps window eg. Chome, Word. 1 app closes every time I launch iPhoto this way.

    I have multiple iPhoto libraries on my Macbook Air 10.7.5 and when I am selecting which library to view (hold down 'option' key and launch iPhoto from the dock) it automatically closes another open application window eg. Chome, Word. 1 app closes every time I launch iPhoto this way.

    If you're pushing Option at the exact moment you're clicking the Dock icon, it's supposed to do that. Wait until just after clicking it.
    (112342)

  • Firefox wont open a game in another window

    when i click on a link to open a game in another window nothing happens

    Nope. Apple simply removed this feature without any warning. Why? Who knows. This really reduces the iTunes workflow for many of us. I have yet to see any offical Apple comment on this blunder, one of many in iTunes 11. Time to look for a 3rd party alternative.

  • Open every window in a new tab, even from another application?

    I've got the extension Glims but even with all those options on, my other applications in Mac OS are still opening a brand new window and moving it too out of position.
    Any way to make every window, no matter what app is opening a window, to place it in another tab?
    I have BetterTouchTool but that's not controlling the window movement as it should be doing.
    I can do this with Google Chrome but I would like to stay with Safari.
    Message was edited by: dnaginzter

    Safari Preferences, Tabs, Open every window in a tab.

  • I have Lightroom 4.2 which isn't opening in Windows 7. A message comes up saying it's already open in another application. I've tried shutting down and restarting; still not opening.

    I have Lightroom 4.2 which isn't opening in Windows 7. A message comes up saying it's already open in another application; I can't see that it is. I've been using this successfully for 2 years now! I've tried shutting down and restarting; still not opening.

    Found it and deleted!! Success! Thank you!
    On Fri, Dec 12, 2014 at 2:12 PM, Mary Dennis <[email protected]>

  • Opening a pop up window from another pop up window

    Hi i'm having difficulty doing this, i'm redoing the business
    directory at this address:
    http://www.localeyenewspaper.com/business.html
    When you click on an ad, on some companies that have website
    i want to put a link below the ad in the pop up window and when the
    user clicks on it another pop up window opens with their site.
    However when i tried to do this instead of another window opening,
    the window with the advert went to the site, and it also stayed the
    same size without resizing to the dimensions i need to display the
    website, can anyone help me? Thanks

    <script type="text/javascript">
    <!--
    var newWin2;
    function MM_openBrWindow2(theURL,winName,features) {
    //v2.0custom
    newWin2=window.open(theURL,winName,features);
    //-->
    </script>
    <a href="
    http://www.dmpowerwashing.co.uk"
    class="style1"
    onclick="MM_openBrWindow2('
    http://www.dmpowerwashing.co.uk','dm','toolbar=yes,loc
    ation=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=1200,height=
    800');return false;">
    Note I've renamed the function and the function call (and
    added "return
    false" to the latter.) This means you'll no longer be able to
    modify it
    using the OpenBrowserWindow behavior in the Behaviors window.
    emichael
    Stuart.hamilton wrote:
    > Here's the code for a pop up window that i want to link
    to another pop up.
    > Where would i put the new code in this? thanks
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    > <title>Untitled Document</title>
    > <style type="text/css">
    > <!--
    > .style1 {font-family: Verdana, Arial, Helvetica,
    sans-serif}
    > -->
    > </style>
    > <script type="text/javascript">
    > <!--
    > function MM_openBrWindow(theURL,winName,features) {
    //v2.0
    > window.open(theURL,winName,features);
    > }
    > //-->
    > </script>
    > </head>
    >
    > <body>
    > <p><img src="../ADs/Useful services
    /Power-washing2.png" width="394"
    > height="438" /></p>
    > <p><a href="
    http://www.dmpowerwashing.co.uk"
    class="style1"
    > onclick="MM_openBrWindow('
    http://www.dmpowerwashing.co.uk','dm','toolbar=yes,loc
    >
    ation=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=1200,height=
    > 800')">www.dmpowerwashing.co.uk</a></p>
    > </body>
    > </html>
    >
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • How do you stop popups.  Every time I open a window in Safari another window opens up

    I have iOS 10.10.2, 2.3 Ghz Intel Core i5 processor, 8 GB 1600 Mhz DDR3 memory. 
    Just recently, every time I open a window in Safari, another window opens up with advertisements.

    Click here and follow the instructions, or if there’s a type of adware not covered by them on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    (124703)

  • Everytime I open the window it keeps on reloading it self over and over again and when it's not doing that and I open another tab and try to go back to the previous tab it reloads itself....Please Help

    Every time I open a window in firefox it constantly reload itself and when I finally get it to stop and open another tab and try to go back to the previous tab it reload itself....Please Help
    == This happened ==
    Every time Firefox opened
    == About 4 months ago

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Opening new window or tab to the same site being viewed on another tab/wind

    I am a new MacBook user. In my past experience with Internet Explorer, I would often open a new window to the same site that I was already viewing through File>Open New Window. This method was often preferable to opening a new window through the IE icon and loading to the homepage. I have gotten quite used to this pattern and am trying to figure out if there is a way to open a new tab or window to the same page that I am already viewing. I know how to open a new tab or window, but rather than going to the same page as in IE, the new tab is blank and the new window goes to the home page. I am using Safari and Firefox and can't figure out how to do this in either browser.

    Hi,
    Try this, I think it works for both Safari and Firefox (not 100% sure on Firefox but think so...)
    Press command+l (lowercase L) and then press commandoptionpress return. That will open a new window with the current webpage in the new window. To open a new tab with the same details, omit the option key in the second step.
    Command key = one with the Apple symbol
    Option key may be called Alt on your keyboard.
    Hope that works!

Maybe you are looking for

  • Parse tag

    Does somebody know how to parse an external XML document in some JSP page? I`ve tried to use the folowing: <%@ taglib uri="http://java.sun.com/jstl/xml_rt" prefix="x" %> <x:parse uri="some.xml" var="xmlSrc"/> ...but it don`t work! Says that uri attri

  • Issue after EHP7 upgrade

    Hello All, Recently, we had EHP7 upgrade from EPH5, since then we found that the extract structure of  3FI_GL_0L_TT got changed. Below are the images of the structure before and after upgrade. Before upgrade: After upgrade: Please let me why after up

  • "Shadow" next to cursor question

    Hello. Very basic question I'm sure but I only bought FCE as I couldn't adjust very well to the i-Movie change..... Anyway, I was happily dragging clips into the Timeline, putting some transition effects on them, adjusting, rendering and moving to th

  • Unable to Save more than 1 Business-object-provider for the Connector.

    I m using MEP 1.0 Platform. My Ecbo Connector "BankDb" had initially "Account" Object Provider which i was able to save successfully via the MEP console.Later on i added the "Statement" Object Provider to the same connector. But i get this Exception

  • EJB - Load Balancing in GlassFish cluster

    Hi, I have been using GlassFish v2 for a year now developing EAR applications very happily. Now, I am starting to think of clustering due to the large amount of webpages of our new website (approx 600.000). I have been reading blogs, documents, and w