Nib file loading problem

Newbie working from a Utility Application template provided by Xcode--
ResultsViewController *viewController = [[ResultsViewController alloc] initWithNibName:@"ResultsView" bundle:nil];
self.resultsViewController = viewController;
[viewController release];
UIView *foo = self.resultsViewController.view; // workaround
self.infoButton = self.resultsViewController.iButton;
iButton is an IBOutlet property in ResultsViewController. The associated button is a subview of the view contained in the nib file owned by ResultsViewController.
If the workaround statement is removed, iButton == 0 when the last statement is reached. Why? Or, what should I be doing in place of the workaround to initialize the IBOutlet property?

The point of IBOutlet is to hook them up in Interface Builder. Cntrl-click on the view controller and drag to the button. Select it in the list.
Now when you load the xib it will be filled in.
Note that the view won't be loaded until it is accessed, that's why you're workaround is required or an access to the view if it's not set to autoload.

Similar Messages

  • Flat-File Loading problem

    Hi Friends,
    I am struggling with flat-file loading problem. I am trying to load a .csv file into data target. I took all pre-cautions while loading data. I look into preview and simulate the data. Everything is ok, but when i schedule the data, i found 0 records in the monitor. The following is the STATUS message of the above problem:
       No data available
    Diagnosis
    The data request was a full update.
    In this case, the corresponding table in the source system does not
    contain any data.
    System response
    Info IDoc received with status 8.
    Procedure
    Check the data basis in the source system.
             Can anybody help me what is the problem and procdure to resolve it?
    Regards,
    Mahesh

    Hi Eugene,
    Thanks for the quick reply. The following screen-shot tells you the messages of detail tab;
    OVER ALL STATUS MISSING WITH MESSAGES OR WARNINGS
    REQUEST: MISSING MESSAGES
    EXTRACTION
    EVERYTHING IS OK
    DATA REQUEST RECEIVED
    NO DATA AVAILABLE DATA ELECTION ENDED.
    PROCESSING
    NO DATA
               The above message was shown in details tab. Pls guide me to locate the problem.
    Regards,
    Mahesh

  • No Data Available (Flat File Loading Problem))

    Hi Friends,
    I loaded the data from FlatFile(Application Server) I am able to see in the Preview
    but the data is not laoding into the Cube. Request status is green but with zero records.
    Following is the message
    No data available
    Diagnosis
    The data request was a full update.
    In this case, the corresponding table in the source system does not
    contain any data.
    System response
    Info IDoc received with status 8.
    Procedure
    Check the data basis in the source system
    Can anybody help
    Regards,
    CV

    Hi chakri,
    first u have cto check  ur flat file in the Presentation server OR Application server
    2. Ur flat file fields sequence same In the Trasfer structure .
    U should maintain the same sequence in Transferstructure  what u have maintained in the flat file.
    3. when ur loading date from flatfile source System u have to use FULLUPDATE  mode .
    check the above .
    Thanks,
    kiran

  • Flat File Load Problem

    Hi All,
    Has anyone come across where flat file uploads cuts out the last 1 or 2 columns from the upload.
    This happens in the preview and in the actual load.
    The data separators(,) and the Escape sign (") are OK
    This are sample lines below:
    "60    ","105906      ","A","253215      ","2005052700000000","516007      ",".TonyA        ","1.17                 ","0.20         ","2005050600000000","7     ","1   "
    "102   ","42577       ","A","560194      ","2005070400000000","825293      ","A.HARCOURT     ","23.95                ","4.19         ","2005062300000000","8     ","56  "
    "149   ","103179      ","A","254010      ","2005020900000000","208864      ","Paul Glew      ","2.16                 ","0.38         ","2004121300000000","9     ","1   "
    It only loads up to the column with 0.20,4.19,0.38 and cuts it out from the date onwards (3 last columns).
    Anybody seen this???

    Hi Guys,
    I really don't have much of a leeway in manipulating the file for upload. It is generated by a legacy system and the upload will be automated.
    However, I am using a subset of the data for testing which I have been changing to troubleshoot the errors. What confuses me in this situation is that I have similar data structures with the same spaces, date formats etc. that is working.  To answer your questions:
    In the preview the data is displayed OK and first date in the line is displayed without the suffix zeros up to the last 3 columns which is blank completely, the following column shows 4 zeros and the last column is blank as well.
    I have tested the data by physically removing the last 3 columns from the file. When I preview that it also gives me zeros in the 2nd last column even though there is no data to be read.
    I have also tested it by removing unwanted spaces and it did not make a difference.
    I have also tested via a logical path as well as pc file.
    I am thinking other ways to test this......any ideas still......
    K

  • External SWF file load problem

    I'm loading external SWF file which has motion tween.After
    the loading progress bar finished to load than calls SWF file.If I
    test the movie locally works fine but when simulate the download it
    seems it jumps end of the timeline.Is anyone could tell me why is
    this??
    Thanks

    k, never mind..... finally figured it all out.

  • 3D walkthrough - W3D file load problem

    Hi,
    I found one interesting source file:
    here
    The file name is:
    wallCollision_V-Ray-FPS_mouseMove.dir
    I downloaded and started to study this file, everything works
    good, except that I am not able to separate the W3D file to act as
    external file, because currently it is attached inside this
    director file, i tried to delete the current w3d scene and
    re-import the same different w3d scene but it doesn't work,
    Can anyone help me with this?

    This problem can be rectified by using '/' before the filename.
    "/filename.m3g".
    Regards
    Dhaval

  • Remote huge file load problem

    ---Following is the code to load a huge image file (50-100M)
    InputStream in = new FileInputStream(readFile);     
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    byte[] buffer = new byte[4096];     
    while((i = in.read(buffer)) != -1){
    out.write(buffer, 0, i);
    in.close();     
    byte[] result = out.toByteArray();
    ---It will crash (or hang) on toByteArray() when file size exceed 18mb.
    Is there any way to load large files?
    Thanks

    1)I am new to the java forum. May I know what is
    documentation for java BUT?http://java.sun.com/docs/index.html
    2)Also may I know where I can find topics about
    processing the file without loading the whole of it
    into memory?
    3) Actuall we are loading this file into bytearray in
    java at client side(PC or MAC) and use rpc to
    transfer to server(UNIX) - the C code in server side
    will take this byte buffer and use fwrite to create
    this huge file. Is there a better way than this?a) Break the file into smaller chunks and send the chunks together with a chunk identifer to the server. The server will then re-construct the file from the chunks.
    b) Install an ftp server on the server machine and user FTP to sent the file.

  • File load problem

    Hi,
    I tried a few things but no success yet.
    I have class Item -> productcode
    class StockItem extends Item -> pr, qty
    class Book1 extends StockItem -> auth, pub, yr, cat
    class Reference1 extends Book1 -> ref
    I think I am getting something wrong with the code below.
    The complete code is at:
    http://www.multiline.com.au/~wje/java/question.html
    This is the error message I get:
    D:\Assignment2.java:992: cannot resolve symbol
    symbol : constructor Reference1 (java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
    location: class Reference1
    item = new Reference1(code,pr,qty,auth,pub,yr,cat,ref);
    ^
    1 error
    public void load(String fileName) {
        try {
          java.util.List lineBuffers = readBookStoreFile(fileName);
          this.fileName = fileName;
          Map map = new HashMap();
          Item item;
          items = new Vector();
          for (int i = 0; i < lineBuffers.size(); i++) {     
            String buffer = (String)lineBuffers.get(i);
            StringTokenizer tokens = new StringTokenizer(buffer, ",");
            if (tokens.countTokens() != 8)
              throw new RuntimeException("Line with incorrect token count");
            String code = tokens.nextToken();
            String pr = tokens.nextToken();
            String qty = tokens.nextToken(); 
              String auth = tokens.nextToken();       
            String pub = tokens.nextToken();
            String yr = tokens.nextToken();
            String cat = tokens.nextToken();
            String ref = tokens.nextToken();        
            item = (Reference1)map.get(code);
            if (item == null) {
              item = new Reference1(code,pr,qty,auth,pub,yr,cat,ref);
              items.addElement(item);
            map.put(code, item);
        catch (Exception e) {
          e.printStackTrace();
          System.exit(1);
      }Thank you in advance for your help
    Andonny

    The class Reference1 does not have a Constructor that accepts 8 strings as argument.

  • Problems loading nib files after class is split into a static library.

    I've recently split a project so that the common re-usable controls are in their own class library. My original application project now references these using a cross project reference.
    However, since I have split the projects up, my original project crashes when it loads main.xib because it cannot find one of the custom classes which is defined in the library project.
    When I first split up the projects, I noticed that there were problems with the nib files not being able to find the IB outlets of the custom classes, but I managed to get around these by going importing the relevant library class files manually (File > Read Class Files…).
    I have made sure that all of the nib files compile without warning, so as far as I can tell, Interface Builder is able to read the necessary class headers, but when I try to run the app, it crashes saying that there is an unknown class in the Interface Builder file and that the class is not coding compliant.
    Are there any steps I've missed or advice on how to troubleshoot this?

    I did a bit of digging. The reason why this wasn't working is because the class in question was referenced by the nib files, but not in code. Therefore, while the code compiled and there were no warnings with the nib files, the linker was not linking the classes because no code used them directly.
    This can be fixed by going to the Project Settings, and on the Build tab, underneath the Linking heading, adding -ObjC to the Other Linker Flags section.

  • System wide failure to load .nib files

    Hi everyone,
    I've recently stumbled across a problem. Several of OS X bundled applications are no longer functioning due to uncaught exceptions in the application.
    1) Mail.app throws an exception and terminates when trying to open an e-mail message:
    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[NSViewController loadView] could not load the "MessageView" nib.'
    2) Stickies.app (Sticky notes) generates a log record (seen in the console app) when attempting to show a sticky note:
    From the console log:
    -[NSWindowController loadWindow]: failed to load window nib file 'StickiesDocument'.
    But the application is not getting terminated.
    3) Preview.app has stopped working, but is not generating any log records or uncaught exceptions.
    4) Terminal.app generates a log record when attempting to open a terminal window at startup:
    From the console log:
    -[TTWindowController loadWindow]: failed to load window nib file '(null)'.
    There might be other apps that could possibly have the same issue
    Having provided the background of the issue my question therefore is: What might be possible solutions to this? (Except reinstalling OS X which is the last (and only) option on my list)
    Thanks in advance!
    With regards,
    Valentine

    Unfortunately, there is no where to download Apple's applications without reinstalling.
    Do a backup. Boot to the Recovery Volume (command - R on a restart or hold down the option key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions. Then reinstall the OS.
    OS X Recovery
    OS X Recovery (2)

  • QuickTime fails to launch: "Unable to load nib file"

    QuickTime has decided today that it will no longer launch. When I look at the message generated in Console it says:
    "QuickTime Player[300] Unable to load nib file: MainMenu, exiting"
    This has been happening since I updated my copy of Fetch. I have tried reinstalling QuickTime but it hasn't helped.
    I am running QuickTime Pro 7.1.6 with DivX and Flip4Mac, both of which were installed some time ago and everything has been running fine until this morning.
    Any ideas what I should do next?
    Thanks.
    iBook G3   Mac OS X (10.3.9)   QuickTime Pro 7.1.6 with DivX and Flip4Mac 2.1.1.70

    Did you repair permissions & restart after the
    update?
    I tried repairing the permissions and QuickTime still failed to launch; however, I didn't think to restart the machine. But then I fired up TechTool and it found problems with the volume structure, repaired it, and all is good now. So I'm not sure if TechTool fixed the problem or if it was eventually restarting after repairing the permissions.

  • Mail Unable to load nib file: MailViewer

    Mail decided not to work. looking at the console I get:
    Mail Unable to load nib file: MailViewer, exiting
    I read somewhere that it might have gotten corrupted, and that therefore I need to reinstall. Is there an easy way to install just Mail in its latest version and not go through (likely outdated) pkg installers? Even better, any other way of solving this problem?
    Many thanks in advance.
    Ivan

    I would say you have a serious issue with your hard drive. Consider doing a format with zero all data options enabled, and see if it pass. You might also consider buying some advanced disk repair utility to test (and repair ?) the drive (TechTool, DiskWarrior or Drive 10).
    Is there an (windows burnable) image "updated rescue disk"?
    No, the restore disk comes with each machine and is to keep in safe place.
    Use it to reinstall your system and apply the Mac OS Update via Software Update or using the same combo update.
    Why reward points ?

  • Quicktime: Unable to load nib file: MainMenu, exiting.

    Recently updated OS X to 10.6.8
    Ever since the upgrade, my system quicktime player is completely dead.   Will not launch, displays generic icon in the application folder.
    iMac:QuickTime Player.app ryan$ pwd
    /Applications/QuickTime Player.app
    iMac:QuickTime Player.app ryan$ ls
    Contents
    iMac:QuickTime Player.app ryan$ cd C*
    iMac:Contents ryan$ ls
    Info.plist    MacOS        Resources    _CodeSignature    version.plist
    iMac:Contents ryan$ cd M*
    iMac:MacOS ryan$ ls
    QuickTime Player
    iMac:MacOS ryan$ ./Q*
    2011-12-16 13:40:05.201 QuickTime Player[30859:903] Unable to load nib file: MainMenu, exiting
    iMac:MacOS ryan$
    I've run the repair permissions utility, within the disk utility several times on the volume.
    I've run the verify disk utility on the volume - no problems reported.
    No other application issues that I've noticed; only quicktime is broken.
    Not sure what to do next.   If it gave me a clue about which "nib" file it was after I could go check it.
    iMac:English.lproj ryan$ pwd
    /Applications/QuickTime Player.app/Contents/Resources/English.lproj
    iMac:English.lproj ryan$ ls -lrt
    total 0
    -rw-r--r--  1 root  wheel  5143 Aug  8 06:39 ExportRefMovieForWebTemplate.html
    -rw-r--r--  1 root  wheel   350 Aug  8 06:39 SaveForWebiFrameTemplate.html
    drwxr-xr-x  2 root  wheel   102 Aug  8 06:41 MGRemoteHUDView.nib
    iMac:English.lproj ryan$  cd *nib
    iMac:MGRemoteHUDView.nib ryan$ ls -lrt
    total 0
    -rw-r--r--  1 root  wheel  4208 Aug  8 06:39 keyedobjects.nib
    Am I missing files in that directory structure??

    Did you repair permissions & restart after the
    update?
    I tried repairing the permissions and QuickTime still failed to launch; however, I didn't think to restart the machine. But then I fired up TechTool and it found problems with the volume structure, repaired it, and all is good now. So I'm not sure if TechTool fixed the problem or if it was eventually restarting after repairing the permissions.

  • Failed to load window nib file

    I am currently building an Application, and I want to use sereval windows. But if I want to open the second window, I ways get this command line message:
    2011-05-18 20:41:14.069 iLearnVocab[11773:903] -[AddVocabulary loadWindow]: failed to load window nib file 'Add Vocabulary'.
    The compiler sais No Issues. In the Application, there is a button, in the main window, that opens the second Window. At first, I tried, to create an empty XIB and add an NSPanel. After that I tried to use a XIB with a window, but it doesn't really matter. The problem is the same. I tried several things, that might cause this problem. File`s owner is set to an Window Controller, that was made for this window and the name of the window in the code seems to be correct. A Controller, that is responsible for sereval other things (such as  table view or all the other buttons) has this method if the button, which should open the Window is pushed:
    - (IBAction)addVocabulary:(id)sender {
        if (!addVocabularyController) {
            addVocabularyController = [[AddVocabularyController alloc] init];
        NSLog(@"addVocabularyController: %@", addVocabularyController);
        [addVocabularyController showWindow:self];
    I also added an outlet of the window (or panel) to the controller. While hunting this bug, I was looking in Aaron Hillegass "Cocoa programming for Mac OS X" for help. I followed every step how to add an additional window, but it didn't worked in my project. Hillegass example project worked, when I was building it. I did everything like it was done in the example project, but it somehow doesn`t work.
    It would be really great if you could help me, thanks, Elefantosque

    Elefantosque wrote:
    I am currently building an Application, and I want to use sereval windows. But if I want to open the second window, I ways get this command line message:
    2011-05-18 20:41:14.069 iLearnVocab[11773:903] -[AddVocabulary loadWindow]: failed to load window nib file 'Add Vocabulary'.
    - (IBAction)addVocabulary:(id)sender {
        if (!addVocabularyController) {
            addVocabularyController = [[AddVocabularyController alloc] init];
        NSLog(@"addVocabularyController: %@", addVocabularyController);
        [addVocabularyController showWindow:self];
    The error says 'Add Vocabulary' (with a space) - you seem to be using (?) an XIB named 'AddVocabulary' ...?
    What is the name of your XIB, exactly?

  • CSS Image loading problem by dynamically loading from fxml file?

    h1. Introduction
    The application I am developing loads an FXML file from a Controller. The FXML uses CSS and images for buttons are set in the CSS.
    CSS directory structure
    <package>.fxml
    Images
    <package>.fxml.resources.<subdir>
    Example CSS Code
    .buttonImage {
        -fx-background-image: url("resources/subdir/image.png");
    }Example loading fxml from controller code
             URL location = getClass().getResource("/package/fxml/UI.fxml");
             FXMLLoader fxmlLoader = new FXMLLoader(location);
             fxmlLoader.setLocation(location);
             fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());
             Parent root = (Parent)fxmlLoader.load(location.openStream());
             Controller = (Controller) fxmlLoader.getController();
             newPane.getChildren().add(root);h1. Problem
    The fxml file does not load and causes the following error:
    javafx.fxml.LoadException: Page language not specified.Note, the fxml file loaded correctly before images were added.
    Any ideas of what might be going wrong?
    h1. Attempted
    I have attempted the following: tried changing the url of the image as an absolute path.

    No Problem: Note, this is the actual FXML, my previous examples were simplifications of package names and class names in order to directly illustrate the problem. Note, I am using SceneBuilder to develop the FXML file.
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.net.*?>
    <?import java.util.*?>
    <?import javafx.collections.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.text.*?>
    <AnchorPane id="AnchorPane" prefHeight="396.0000999999975" prefWidth="350.0" styleClass="mainFxmlClass" xmlns:fx="http://javafx.com/fxml" fx:controller="com.monkygames.kbmaster.controller.ProfileUIController">
      <children>
        <Label layoutX="14.0" layoutY="14.0" text="Profiles">
          <font>
            <Font size="18.0" />
          </font>
        </Label>
        <GridPane layoutX="15.0" layoutY="44.0" prefHeight="99.0" prefWidth="335.0">
          <children>
            <Label text="Type: " GridPane.columnIndex="0" GridPane.rowIndex="0" />
            <ComboBox fx:id="typeCB" prefWidth="249.0" GridPane.columnIndex="1" GridPane.rowIndex="0">
              <items>
                <FXCollections fx:factory="observableArrayList">
                  <String fx:value="Item 1" />
                  <String fx:value="Item 2" />
                  <String fx:value="Item 3" />
                </FXCollections>
              </items>
            </ComboBox>
            <Label text="Program: " GridPane.columnIndex="0" GridPane.rowIndex="1" />
            <ComboBox fx:id="programCB" prefWidth="249.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
              <items>
                <FXCollections fx:factory="observableArrayList">
                  <String fx:value="Item 1" />
                  <String fx:value="Item 2" />
                  <String fx:value="Item 3" />
                </FXCollections>
              </items>
            </ComboBox>
            <Label text="Profile: " GridPane.columnIndex="0" GridPane.rowIndex="2" />
            <ComboBox prefWidth="249.0" GridPane.columnIndex="1" GridPane.rowIndex="2">
              <items>
                <FXCollections fx:factory="observableArrayList">
                  <String fx:value="Item 1" />
                  <String fx:value="Item 2" />
                  <String fx:value="Item 3" />
                </FXCollections>
              </items>
            </ComboBox>
          </children>
          <columnConstraints>
            <ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" maxWidth="-Infinity" minWidth="10.0" prefWidth="80.0" />
            <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
          </columnConstraints>
          <rowConstraints>
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
          </rowConstraints>
        </GridPane>
        <HBox layoutX="14.0" layoutY="150.0" prefHeight="159.0" prefWidth="335.0">
          <children>
            <Label text="Description: " />
            <TextArea prefHeight="172.0" prefWidth="247.0" wrapText="true" />
          </children>
        </HBox>
        <HBox alignment="CENTER" layoutX="11.0" layoutY="334.0" prefHeight="48.0" prefWidth="329.0">
          <children>
            <Button fx:id="newProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="newProfile" text="New Profile" />
            <Button id="newProfileB" fx:id="cloneProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="cloneProfile" text="Clone Profile" />
            <Button id="newProfileB" fx:id="importProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="importProfile" text="Import Profile" />
            <Button id="newProfileB" fx:id="exportProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="exportProfile" text="Export Profile" />
            <Button id="newProfileB" fx:id="printPDFB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="pdfProfile" text="Print to PDF" />
            <Button id="newProfileB" fx:id="deleteProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="deleteProfile" text="Delete Profile" />
          </children>
        </HBox>
      </children>
      <stylesheets>
        <URL value="@master.css" />
        <URL value="@profile.css" />
      </stylesheets>
    </AnchorPane>Edited by: 960799 on Jan 4, 2013 8:58 PM
    Edited by: 960799 on Jan 4, 2013 8:59 PM

Maybe you are looking for

  • Accomodating date and time in a single Infoobject

    Hi Gurus, We are getting an R/3 field(2 fields) as "YYYY.MM.DD HH:MM:SS". And we have mapped that fields to a Two IO (CHAR).Data is getting loaded fine,but not getting it in the same format (with required DOTS and COLONS).Is there any routine that I

  • Registration Captcha

    Hey guys, just wanted to discuss the utility of the catcha question: "date -u +%j$(uname)|sha256sum|sed 's/\W//g." You seriously nearly reduced my to tears. I had a kernel panic, several pacman problems and after several hours of trying to fix the pr

  • How do i get my photos off my old device onto my new device?

    how do i get my photos off my old device onto my new device?

  • Reg : Archiving of Internal Order

    Hai Friends I am working on Archiving of Control Orders(Internal Orders) using KO02. Archiving can be done only when deletion flag is set for Internal Order. My issue is I want to set deletion flag for the Internal Order without going into the TCode

  • Wrong phone number when registered

    i misunderstood the form and orovided my home phone number instead of the I phone number. how can i fix this?.. my synch is not done yet