Main window ptr. from separate NIB file

Hi All,
This sounds like the simple kind of job a programmer would do everyday, but I haven't been able to figure it out yet.
My NSObject app has the usual main window and MainMenu.nib file, and my user-defaults are kept in an NSWindowController subclass complete with its own separate Preferences.nib file. It does the job but I'd prefer to attach the prefs window to the main window as a sheet rather than present it as a separate pane.
Assuming this is possible, I'd at least need a pointer to the main window to start with. How can I get the main window's pointer from within this separate nib file, please?
Thanks in advance
Ernie

Thanks guys. I've figured this out now!
Ernie

Similar Messages

  • Duplicate windows from single nib file?

    I've got a Window inside a Nib file that I want to display multiple copies of, but I have no idea how I would pull this off.
    I've tried existing suggestions of placing the window in a seperate nib file with the File's owner set to the NSWindowController class, and then creating multiple instances of this class with the initWithWindowNibName call, however for some reason this seems to fall short when I add a WebView to the window, as it no longer displays a window when I call the showWindow method.
    Is there a better alternative to achieve what I'm looking for?

    Any update on this ability?  We create many in house videos that need to be encoded to 14 different
    bitrates for use with Flash Media Server as dynamic http streams.
    Currently when I am ready to export a finished sequence, I will pick my first preset and queue it in AME.  Then I duplicate that thirteen times, setting each of the new thirteen queued items to their appropriate bitrates.  Then I have to change each of the output names to be "filename_bitrate.flv".
    This process is much slower when queued in AME than if I exported each individually from PP.  I just don't have the time to manually export each version.
    I have also started noticing that some of the last few projects won't render beyond the quality of the first queued item.  Do I need to render the largest bitrate file first?
    Any indication from Adobe on the correct workflow to create multiple bitrate files to be consumed by FMS as dynamic http streams would be appreciated.
    The link above is dead.  Does anyone have an updated link to the document above?

  • Can i create a home window without using a NIB file

    I hate interface builder, it is a really counter-intuitive piece of junk. Please don't try to convince me otherwise I prefer to do it all in code. Right now i have my whole product running dynamically, creating all the interface objects programmatically as my positioning is all calculated on the fly.
    However I still have one NIB file (MainWindow.NIB) that creates the home window and somehow links to my AppDelegate class, which is the startup class for my app. I see that my main.c routine calls UIApplicationMain() which somehow loads the main nib (hidden magic here), and then eventually my AppDelegate() method which is of calss UIWindow() gets called with an initialize() call followed by applicationDidFinishLaunching() call and off we go.
    Can I create the window dynamically by not using NIBs? Now that we have ipad and iphone to contend with, I would want to create a window that is either 320 x 480 or 768 x 1024 depending on what machine I am on. I would like to get rid of the NIB because I don't understand the wiring stuff and I tried to make a NIB myself but now get a cryptic error message, and anyway the NIB has a fixed size and my app wants to be dynamic now that we have two screen sizes.
    The second part of the question is how do you know what kind of machine you are on? I don't see a Gestalt() routine like in the old mac days so you can tell what machine it is.

    There are always less-informed people who think that a STATIC development tool is somehow more powerful than a flexible dynamic interface computed as one goes. The idea of a static screen form that you control dates back the 80's; modern interfaces are DYNAMIC and interface builder cannot construct those; sure it can perhaps help you lay out things, but if the user turns on certain features then new controls are visible. We have built products with over 500 controls in them and as only perhaps 25 are needed at any one time the software rearranges the screen in the most optimal form at all times. The more advanced the product the more one chafes at a static design tool.

  • How do I stop Windows 7 from searching hidden files and folders

    In XP it was simple with the intuitive Advanced Search Options.
    Even if you enable "Don't show Hidden Files and Folders" in Windows 7, they still show up in the search menu.  A similar post included a suggestion by a support dude to post a question here.  I've searched for every possible solution and yet something so simple appears to be non existent.  Has Microsoft just lost its mind with omitting this feature?  Is this something that will never be solved?  Indexed or not, hidden files and folders still appear in Search.
    Thanks

    what have you setup in Explorer->Organize->Folder & Search Options?
    Don't show hidden and Hide: Empty, Protected, etc. all ticked
    if you have at some stage indexed all those system folders, and subsquently removed those from the index scope, then you may need to rebuild the index so those results are not presented by searches?
    i've assumed that you are getting things like \windows included, and this seems to be typical. perhaps because some common tools like notepad, wordpad etc reside in those folders.
    have you checked out the Indexing Options?
    from memory, "don't show hidden & system" really only obscures the stuff when you're browsing in explorer. the indexing engine doesn't respect that kind of setting. you'll need to get your indexing scope worked out to affect the search results presented.
    I'm not concerned much with indexing, it's just amazing that there is no option to stop "Search" from searching hidden files and folders when "Don't show hidden" is checked - the way it was with XP, etc.  As I understand it whether folder is indexed or not, will not stop "SEARCH" from searching them.  It was quite simple in XP but in Windows 7 it seems it is impossible.

  • AS file not recognizing id's from separate MXML file

    I'm new to Flex (and fairly new to programming in general)
    and have a question that Google hasn't helped with.
    The relevant code is below, and here's the long and short of
    it. There's a TextInput whose visibility I want to toggle via a
    function in a separate AS file. On the line
    "photoNameEditor.visible = false;" though, Flex Builder gives me an
    "1120: Access of undefined property photoNameEditor" error, and the
    same goes for photoName.
    I'm fairly sure the problem is that the AS file doesn't
    recognize the id from the separate MXML file. The error goes away
    when I put the ActionScript between <mx:Script> tags in the
    MXML file, but I'd much rather keep the AS in its own file. So my
    question is what's the best way to get the AS file to recognize
    id's from a separate MXML file?
    Thanks very much. I'd appreciate anything you think might
    help.

    There are a couple things going on here. Let's assume you
    want to stick with this approach where you're including external
    scripts instead of importing a class or using event dispatches
    (that will all come later - months if your experience is anything
    like mine). Given that, I'm not sure that text is the best control
    for what you want to do, but I'm not sure what you want to do
    exactly. However, if you need text in your situation, might try a
    label, linkbutton, button - things that play well assumed links and
    clicks. However, given your code and if you want to use text
    instead of a label, you can move the handler to the mouseDown
    event, rather than click, and it would probably work. (sorry for
    the formatting - lazy right now):
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script source="scripts/toggleStyles.as" />
    <mx:VBox x="55" y="45" height="100%">
    <mx:Label id="photoName" fontSize="12" fontStyle="normal"
    text="Click Me" enabled="true" fontWeight="bold"
    click="togglePhotoNameEdit()"/>
    <mx:TextInput id="photoNameEditor" fontSize="16"
    width="300" />
    </mx:VBox>
    </mx:Application>
    <!--and the ActionScript file:-->
    // ActionScript file
    private function togglePhotoNameEdit():void {
    photoNameEditor.visible = !photoNameEditor.visible;
    }

  • Can you install Windows 7 from an *.iso file on the Bootcamp partition?

    G'Day Everyone,
    I have an ISO disk image on my Mac hard drive. (en_windows_7_professional_with_sp1_x86_dvd_631025.iso)
    Has anyone had a successful experience installing Windows 7 from an ISO disk image rather than from an installer disk?
    If so, what's the process?
    Thanks and Cheers,
    Rich

    I'm running Boot Camp 3.0.4 on Mac OS 10.6.8
    Here's what I see:
    Screen One
    Screen Two:
    Screen Three:
    I don't see the screen you shared!! :-(
    What version of Boot Camp Assistant are you running? What Mac O?
    Thanks & Cheers,
    Rich

  • When I am downloading anything from any website in firefox and if I close main window of firefox, the downloading file also gets stops and crashes.

    example, I was downloading 74 mb file and as soon as I close firefox window my 74 mb file was downloaded to that size upto which it has been downloaded say 1 Mb for example..

    You can set the pref browser.download.manager.quitBehavior to 2 on the about:config page.<br />
    That will make Firefox ask for confirmation if you want to cancel the download if you close Firefox.
    See:
    * http://kb.mozillazine.org/browser.download.manager.quitBehavior
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • How to create a comp from separate wav files

    I have wav-files from a ProTools session, 3 takes (14 mics), so in total 42 (drum)racks.
    I am looking for a way to create a Comp in Logic, so i can use the Quick Swipe Comping facility.
    Anybody knows how to achieve this ?
    Thx in advance,
    Arno

    Pull the files onto the arrange page then: *right click/folder/pack take folder*
    Message was edited by: bill borez

  • EJB(EAR file) lookup from separate WAR file

    Hi
    I have 2 applications (EAR and WAR) deployed in an OC4J instance using Oracle 10g. All my EJB components are in my EAR file and all my front-end/servlet component are in the WAR file. My lookup in the servlet fails, like:
    05/01/21 13:47:05 javax.naming.NameNotFoundException: SessionEJB not found
    05/01/21 13:47:05 at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
    05/01/21 13:47:05 at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:248)
    05/01/21 13:47:05 at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:119)
    05/01/21 13:47:05 at javax.naming.InitialContext.lookup(InitialContext.java:347)
    05/01/21 13:47:05 at efdw.eap.servlet.SessionEJBAction.execute(SessionEJBAction.java:48)
    05/01/21 13:47:05 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    05/01/21 13:47:05 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    05/01/21 13:47:05 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    05/01/21 13:47:05 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    05/01/21 13:47:05 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    05/01/21 13:47:05 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    05/01/21 13:47:05 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    05/01/21 13:47:05 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    05/01/21 13:47:05 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    05/01/21 13:47:05 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    05/01/21 13:47:05 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    05/01/21 13:47:05 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    05/01/21 13:47:05 at java.lang.Thread.run(Thread.java:534)
    EJB reference in web.xml looks like:
    <ejb-ref>
    <ejb-ref-name>SessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.app.bean.SessionEJBHome</home>
    <remote>com.app.bean.SessionEJB</remote>
    </ejb-ref>
    I've added the "parent" attribute in server.xml, something like:
    <application name="myapp" path="../applications/myapp.ear" auto-start="true" />
    <application name="myweb" path="../applications/myweb.ear" auto-start="true" parent="myapp" />
    but the sever.xml file gets reset and there is no parent attribute in the file
    lookup in my servlet:
    Context ctx = new InitialContext();
    Object objref = ctx.lookup("SessionEJB");
    sessionEJBHome = (SessionEJBHome)PortableRemoteObject.narrow(objref, SessionEJBHome.class);
    beanRemote = sessionEJBHome.create();
    I also tried using the jndi.properties file and by specifying context attributes (PROVIDER_URL,INITIAL_CONTEXT_FACTORY,..) nothing worked.
    Is there a way I can configure the jndi tree like in weblogic? How do I need to configure the lookup?

    Hi Naga,
    You have to lookup the ejb as follows:
    Object objref = ctx.lookup("java:comp/env/ejb/SessionEJB");
    location tag in orion-ejb-jar.xml for the EJB determines where the JNDI-name to which this bean will be bound documented in EJB Guide at http://download-west.oracle.com/docs/cd/B14099_01/web.1012/b15505/dtdxml001.htm#sthref1130
    <ejb-ref-mapping ... > in orion-web.xml :
    This element creates a mapping between an EJB reference, defined in an <ejb-ref> element, and a JNDI location when deploying.
    The <ejb-ref> element can appear within the <web-app> element of orion-web.xml or web.xml and is used to declare a reference to an EJB.
    -Debu

  • Windows and Nib files

    Hi
    I have three windows in my MainMenu.nib file
    #import <Cocoa/Cocoa.h>
    @interface learnWindowsAppDelegate : NSObject <NSApplicationDelegate>
    NSWindow *window;
    NSWindow *Awindow;
    NSWindow *Bwindow;
    IBOutlet NSButton *open;
    IBOutlet NSButton *close;
    @property (retain) IBOutlet NSWindow *window;
    @property (retain) IBOutlet NSWindow *Awindow;
    @property (retain) IBOutlet NSWindow *Bwindow;
    - (IBAction)Open:(id)sender;
    - (IBAction)Close:(id)sender;
    when i build and run the project windows A and B appear
    I can close then by using Open and close button - but how would i stop them appearing when you run the project
    i.e only see them if you click Open or close them via the Close button
    Regards
    Tony

    If you don't want a window to be visible initially, change the window's behavior in Interface Builder. Select the window in Interface Builder and open its identity inspector by choosing Tools > Attributes Inspector. Deselect the Visible At Launch checkbox.

  • Main window of SAPScript versus Main window of smartform

    Hi,
    In case of Smartform we have one main window per page but in case of SAP Script we can have 0 to 99 Main window on one page.
    In case of smartform if the main window on one page gets filled then the remaining long text will jump on main window of second page.
    Following are my doubts:
    If I define three MAIN windows for three different kind of long texts on page one in SAP Script as follows:
    MAIN Window 1 -  Long text1
    Main Window 2 -  Long text2
    Main Window 3 -  Long text3
    1) If the long text 1 on MAIN window 1 of first page gets full does it automatically jump to Main Window 2 of first page ?
    2) If I don't want the long text on Main Window 1 to jump on Main window 2 on first page but on Main winodw 1 of next page , is it possible ? How do I do it ?
    Answers will be rewarded..
    Tushar.

    In SAPScripts if the long text is filled in the Main Window it will spill over into the same Main Window if it is defined in the next page. Text from one Main Window will nt spill over onto the text to different Main window.
    So as far as you questions are concerned:
    1. Not it does not automatically jump over into Main Window 2 from Main Window 1 on same page or next page.
    2. You just need to define the Same Main Window on the next page so that text gets jumped over to the next page. If it is possible just define the next page as the same page, so that you do not have to create a separate page and attach all the windows.
    Hope this helps you...
    Shashi Reddy

  • How do you combine pages from separate PDFs?

    How do you combine pages from separate PDF files into one document?

    I use Adobe Acrobat for this.

  • Loading separate JAR files.

    Hello.
    I have an application that loads functionality from separate jar files so that the application has a "hot deploy" feature. This means that the application reloads a certain functionallity if a new jar is deployed to that folder. This also means that the jars containing this functionality must be in a separate forlder than the jars for the application framework, or the system would try to load this as a functionallity as well.
    In my JNLP file, I load the whole application framework at startup, but none of the functionality jars as these are loaded after the application has logged the user in and so on. I use URLClassLoader to load the funtionality classes but in these classes, I import from the allready loaded framework, and the functionalities I try to load throw an excaption that they do not find the classes in the framework.
    Any ideas as to how the externally loaded jars can find classes loaded into the framework? This works perfectly well when I don't use web start, so there must be some class loading issues I am not aware of.
    Thank you.
    -r

    OK, I am making some progress, but now I have a different problem: Some of the framework for loading was written by someone else and I would really like access to the debug information it prints without having to rewrite a lot to print it all to files. Is there any way to get access to everything that is being printed on System.out from web start. Been looking around but I can't find anything on the subject.

  • Dynammic main window

    hi,
    im developing PO smartform.in this im able to display 6 items in the mainwindow(as per the dimensions of the main window) and from the 7th item it's going to the next page and below that footer is printing.my user wants all the items should come on first page and if there are any items left then they should go to next page
    and then footer should print.for example,if there are 20 items,in my case  only 6 items will print in 1st page and remaining items wil go to next page and then footer wil print.he wants the entire page should be filled with items and if any items then only next page and then footer.
    if there are only 4 items everything should come on first page including footer.please suggest is it possible to vary the length of the mainwindow depending on the no. of items,how can i solve this  issue.

    Remove footer window from your smartform and place footer text in main window so it will print the text once all line items are printed.
    If you still want to keep the footer text then this is the way to do, place program lines in your smartfrom and read number of lines your internal table is holding, goto footer and place a condition....
    for example:
    **footer condition lines EQ <no. of lines in internal table>
    **display footer...
    don't foget to increment lines inside your main window...
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • I have used Lr many years without problems. Now it is inpossible to edit . Can not see the editing in main window only in the small thumbnail. Suddenly it is not possible to import  raw-files from my Linux camera ( it worked earlier)

    Editing mode does not work. I can not follow de editing in the main window. I cah see it in the thumbnail.

    From your description of the problem, I suspect that you have a standalone license but have downloaded and installed the CC update. Or, it's the other way around. In either case, you need to install the right version.

Maybe you are looking for

  • Time Machine backup disappears when iMac sleeps

    Tried finding this topic but could not find the specifics. I have an Intel iMac running 10.6.7 and I use a Mercury enclosure with a Seagate Barracuda 2TB SATA for Time Machine backup, connected with FireWire. Every time my Mac goes to sleep overnight

  • BI Pattern Wizard

    Dear All, I tried playing around with the Pattern Wizard in WAD on 2004s. The problem there is, I can not see the reusable web items and the ICP template is not being displayed properly. I tried searching for the sap_bw_pattern_objects role and was n

  • ApplicationStorageDirectory files not loading on iOS

    Hi All, I'm building a game and I have a persistance manager class that manages loading/saving my players game state to the File.applicationStorageDirectory. I am able to save my player's game to the applicationStorageDirectory, but when I try to loa

  • Filename autocomplete in ksh

    We're migrating from HPUX to Solaris and have gotten used to the filename completion feature (ESC-ESC) in HP's ksh. Is there a way to enable this in Sun's ksh?

  • Reset Sync History

    I would like to change choice for syncing calender to "merge data." Current sync replace phone entries with computers. Resetting sync history does not cause ITunes to ask for sync choices of contacts and calendar as Apple documentation suggest. Any s