How to view/launch different XIB files

Wow.
Whoever called xcode a RAD should be shot
Very experiences Windows devloper here... muddlin' through my first exposure to xCode. I'm finding even the simplest of tasks to take me forever to figure out.
For example - I have been working for HOURS on this one...
I have
MainWindow.XIB - has a View and a title bar on it.
RootViewConroller.XIB (owner RootViewController) which has a table view on it.
In that table view with several items in it, propogated by an array "menulist".
TSD.XIB (owner TSDController) with just a single text field (for testing)
So this is what I have so far...
Main view loads up fine, table is populated, and when the user hits an option there, it slides to the side and loads up TSDController. I even have a Back Button which slides the RootVewController back into place but the problem is that the TSD.XIB itself is not showing. I'm sure I'm missing a little link somewhere.
In RootViewController.m under didSelectRowAtIndexPath for the table the code looks like :
UIViewController *targetViewController = [[menuList objectAtIndex:indexPath.row] objectForKey:@"viewController"];
[[self navigationController] pushViewController:targetViewController animated:YES];
//next line added as an afterthought
[targetViewController initWithNibName:@"TSD" bundle:nil];
Like I said the "targetviewcontroller" is working becuase I have a break in there so I see it's being "launched"... I just don't "see" the TSD.XIB.
TSD.XIB has TSDController as the file owner with the View linked to the Window. (I also tried linking Window to Window as well).
I also have the App Delegate pointing to UIApplication (is this correct - I've also tried pointing it to TSDController).
There's also a Window object there as well of course so I can have that test text box on there.
So I am obviously missing something somewhere. Somehow I don't have the XIB loading with the controller.
HELP!
Dave

I'm guessing that you're creating the View Controller in the loadView (or somewhere) and then adding it to menuList with the key of ViewController.
Something like this from the UICatalog samplecode:
ButtonsViewController *buttonsViewController = [[ButtonsViewController alloc] init];
[menuList addObject:[NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedString(@"ButtonsTitle", @""), @"title",
buttonsViewController, @"viewController",
nil]];
[buttonsViewController release];
Make sure you add the initWithNib in this allocation of the viewController. I believe it's basically creating the viewController in memory at this point, storing it in the array and then just referencing it later (before the push).
I was doing this for a while, but had to stop as i'd rather create the viewController in memory just before the push and then release it straight afterwards. I was tieing myself in knots trying to release the viewController when it was still stored in the array.
I'm quite new to this myself but that's my take on it.
Anyway, hopefully this should get you working:
ButtonsViewController *buttonsViewController = [[ButtonsViewController alloc] initWithNibName:"@MyNib" withBundle:nil];
[menuList addObject:[NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedString(@"ButtonsTitle", @""), @"title",
buttonsViewController, @"viewController",
nil]];
[buttonsViewController release];

Similar Messages

  • How can I combine different pdf files in one?

    How can I combine different pdf files in one?

    Sara,
    It is not working. I wish to decline in having the pdf pack. How can I give up this purchase? I definitely do not want the Adobe PDF Pack anymore.
    Who do I have to contact or what do I need to do to cancel this purchase?
    Flávia
    Enviado do Email do Windows
    De: Sara.Forsberg
    Enviado: terça-feira, 6 de maio de 2014 14:59
    Para: Eu
    How can I combine different pdf files in one?
    created by Sara.Forsberg in Adobe PDF Pack - View the full discussion 
    Hi Flávia,
    Adobe PDF Pack is an online subscription--it definitely allows you to combine several files into one PDF file. For more information about PDF Pack, see Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack. If you don't have the full version of Acrobat, this is a great solution for combining PDF files.
    However, if you're using Acrobat (not Adobe Reader), you combine files by following these steps:
    Open a PDF file that you want to add pages to.
    Click the Pages pane on the Tools panel (on the right side of the application).
    Click Insert From File, and choose the file that you want to combine with the PDF that you opened in step 1.
    Make any changes necessary in the Insert Pages dialog box--these settings determine where the new file will be inserted.
    Click OK.
    Please let me know how it goes.
    Best,
    Sara
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6358990#6358990
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to view and manage hidden files in folders.

    Hi all, my question is: How to view and manage hidden files in folders?. I see hidden files in other computer but no in my Mac.
    Some of you can help me?
    Thanks..

    Most hidden files are hidden for a reason.   Tampering with them can seriously affect the stability of the system.
    The software Tinkertool can
    http://www.bresink.com/osx/TinkerTool.html
    Can manage the invisibility, which I would only do after backing up your system.

  • How to view TestStand XML results files

    Hi Gurus,
    We have used TestStand to save literally thousands of test results files in the XML format. TestStand allowed us to view a specific results file immediately after a test sequence, however I can't find a way to view the XML test results files otherwise. In other words, how can I view any one of a number of TestStand-generated XML results files using TestStand or otherwise (in an appropriate format/style) ?
    Regards
    Mike V

    Hi Ray
    its version 6.0.blablabla
    For some reason it doesn't find the stylesheet on the PC where its being launched from. i can fix the problem by editing the XML's stylesheet path within the xml file and putting style sheet in same directory as results, but I had to write a program to modify all the files because there were so many. Future files no problem.
    On another issue, we have thousands of results files stored in XML. Now I need to do some statistical analysis on the results but extracting the fields into a spreadsheet is a nightmare, I wish i'd used text files (database ultimate goal). Any tips here?
    Also, in TestStand there seems to be only one location allowable to store all results files. Ideally i want to store results files in product-specific directories, ie not put results for all UUT types in the same directory. Is this possible?
    Also, how can I append the word "Pass" of "Fail" into the results file name so you can tell at a glance if a test was passed without opening the file? 
    Regards
    Mike

  • How to view and edit .md file (text file) via Documents To Go app

    Could some one please let me know how to view a text file with .md as the file extension using Documents To Go app? If this is impossible, which app do you recommend.
    .md is a markdown file

    Hi,
    I believe I have my answer now, or at least a good thread on the subject going hear:
    http://forums.java.net/jive/thread.jspa?threadID=45148
    Thanks,
    Mark

  • How to view database core dump file

    I have an Oracle server on windows 2000. Now, I found the oracle server will produce a core dump file in ..\cdump directory. But this file is only a system memory image, so it's hard to analysis the core dump reason, could you tell me how to view this file? thanks

    There's no much useful information for you too see. You can create a SR with Oracle support and upload file if you want to investigate the cause of core dump. also check if there's any errors in your alert<SID>.log and core_dump_dest

  • How to view and print pdf files

    how to view and print pdf files

    Download and install Adobe Reader: Adobe Reader Install for all versions
    Open the PDF file using it. If security restrictions don't prevent it you could also print it.

  • How to view ipassword app backup files in XP?

    How can I view ipassword app backup files in XP?

    Ask the app developer if it's even possible. That's not an Apple product.

  • How we cam naintain different directory file in native SQL

    Hi Friends.
    Pls solve my problem.
    I am writing code using native sql for getting data from different directories as
    first i have only one directory file
    execsql
    SELECT * INTO :WA  FROM file.
    endexec.
    now the costumer has 3 different directory files.
    he need a selection on which he can choose any directory.
    if i used as
    parameters  x type .   for selection screen
    what type i should used and how i use that parameter in Select statement to pass data in WA.
    i am waiting for ur reply.
    regards

    Hi,
    You can place your code inside a loop...endloop.
    Loop at itab into wa_tab.
    exec sql.
    SELECT * INTO :WA FROM :wa_tab-file.
    endexec.
    endloop.
    Regards
    Subramanian

  • How to set two different welcome-file to different servlets in web.xml

    Hi friends,
    Can some one help with web.xml file
    I have to different servlets in applications.
    I want to set two different welcome files for my two different
    servlets in web.xml
    Please, can some one give me sample code to achieve this.
    Here web.xml code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>     
         <servlet>
              <servlet-name>reports</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrReportsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>reports</servlet-name>
              <url-pattern>/reports</url-pattern>
         </servlet-mapping>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
         <welcome-file-list>
              <welcome-file>reportsindex.jsp</welcome-file>
         </welcome-file-list>
         <servlet>
              <servlet-name>calldetails</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrCallDetailsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>calldetails</servlet-name>
              <url-pattern>/calldetails</url-pattern>
         </servlet-mapping>
    <welcome-file-list>
              <welcome-file>calldetailsindex.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    I need this fix immediately. Your help will be really appreciated. Thanks in advance.

    First of all, my understanding is that you need to have a Servlet 2.4 complaint server to do this...Given that, you're supposed to be able to simply specify the Name of the servlet as the welcome-file to get it to work. For example:
    Your servlet section:
    <servlet>
      <servlet-name>Controller</servlet-name>
      <servlet-class>com.company.ControllerServlet</servlet-class>
    </servlet>Now you would add the following to your welcome file list:
    <welcome-file-list>
      <welcome-file>Controller</welcome-file>
    </welcome-file-list>Note that you use the servlet-name value from the servlet definition, NOT the url-mapping from the servlet-mapping section.
    Please note that I cannot verify this as I am running a 2.3 server at home. When I get to work Friday I can test on a 2.4 machine. However this shouldn't take you more than a minute to test.
    Note that I did try this on the 2.3 compliant server and it did NOT work (as I expected)...
    HTH.

  • How To View or Run .CLA files?

    I've downloaded sample applications from Adobe LC web.
    I've Unzipped the file, but then I don't know how to open it.
    The file extension is .CLA
    Can you help?

    Step1: Rename your file into .LCA
    Step 2: Goto Adminui-> Services -> Applications & Services-> Archive Management-> Import Archive.
    Step 3: Locate your file and click import.
    Now you can see the updated processes and forms in your workbench.
    Nith
    DISCLAIMER:
    ========================================================================
    "This communication is intended only for the named recipient and others authorized to receive it.
    It contains confidential or legally privileged information. If you are not the intended recipient, please notify us immediately, and note that any disclosure, copying, distribution or action you may take in reliance on this communication is strictly prohibited and may be unlawful. Unless indicated otherwise, this communication is not intended, nor should it be taken to create any legal and/or contractual relation or otherwise. Ministry of Finance (MOF) is neither liable for the proper and complete transmission of the communication, nor for any delay in its receipt.
    Whilst MOF undertakes all reasonable efforts to screen outgoing e-mails for viruses, it cannot be held liable for any viruses transmitted by this e-mail."

  • How to enforce a different configuration file while invoking SAPShcut.exe

    I'm using sapshcut.exe to logon to SAP. Following is syntax of  command that Iu2019m using for that prupose:
    sapshcut.exe /sysname=IDES /client=800 /user=xxxx /pwd=yyyy
    By default, the configuration file (saplogon.ini) that is being used during this process by sapshcut.exe is located in user directory (SAP GUI 7.2). However, Iu2019d like to use a different configuration file that is located at other location (e.g., h:/test/saplogon.ini). SAP has mentioned to use additional parameter "INI_FILE" for that purposes so Iu2019m using following command:
    sapshcut.exe /sysname=IDES /client=800 /user=xxxx /pwd=yyyy /INI_FILE=h:/test/saplogon.ini
    No matter what value I defined for the u2018INI_FILEu2019 parameter, SAP ignores it and always uses default configuration file located in the user directory and if given SAP system does not exist in that configuration file then I report an error. Interestingly, I found that if use 'saplogon.exe' instead of 'sapshcut.exe' and provide same parameter value for 'INI_FILE' parameter then SAP overwrite the default configuration file and uses saplogon.ini defined there. But i cannot use saplogon.exe as I must have to use sapchcut.exe to directly log into SAP system for automation testing.
    I've also found out that the only way sapshcut.exe can overwrite the default ini file is through the use of environment variable "SAPLOGON_INI_FILE". But rather than using environment variable I'd like to define configuration file during the command line.
    Any help would be really appreciated.

    We stumbled upon the same problem. Thank you for mentioning that using the environment variable works.
    This leads to the following single command line as a workaround.
    First set the needed saplogon.ini and then execute in a nested command shell the call to sapshcut.exe
    cmd /c set SAPLOGON_INI_FILE=C:\config\saplogon.ini & cmd /c "%ProgramFiles%\SAP\FrontEnd\SAPgui\sapshcut.exe"  -user= -pw= -language=E -system=XXX -client=100
    This works, but only if there is not already an instance of saplogon.exe running with a different saplogon.ini.
    Best regards,
    Axel.

  • How to import 12 different PPro files into one Encore file to make DVD

    I'm trying to create a DVD with 12 different lessons on it.  I have created 12 Premiere Pro CS4 files (each is a slideshow lessons with narration) and I want to bring them all into one Encore file.  I can send one file to Encore via Dynamic Link - but when I open another PPro file and try to send it to the same Encore folder - it erases the file I put in there previously.  Maybe I'm going about this all wrong - I really don't know.  Please Help.

    Hi Stan,
    Thanks for the reply.
    Since I wanted to get the DVD finished asap - I jumped right into PPro CS4 without going through a learning process first.
    When I said "file" I meant one of the 12 or 13 different PPro projects that I saved to my Desktop...each lesson is different - so I made and saved each lesson separately and placed each of them in a different folder.  Each lesson only has one "sequence" (and I'm not sure what "sequence" means yet).
    These are basically PowerPoint lessons with narration - each lesson containing anywhere from 25-75 pictures or text slides.
    When I opened up one of the lessons in PPro and sent it via DL to Encore - that was fine.  It created an Encore file.  When I opened up the next PPro file and tried to DL to that same Encore file - it appeared to delete or do away with the first file I had sent there.  I could DL each of the 12 or 13 files - but only to its own Encore file.  I couldn't figure out how to get them all into the same Encore file.  But thanks to all the help on this forum - there are now 13 little videos that I can import into the same Encore file.  And that's amazing.
    Thanks for the encouraging words that this project might all fit on the same DVD (I was worred because the files add up to 107 minutes - and I the DVD holds 120 minutes (I think).  I was assuming that after I created a menu and added a picture for the background in the title page, etc., that it would all add up to too much information for one DVD).
    I'll let you know how the DVD turns out.
    Thank you very much.
    ph

  • How can I open different binary files from BLOB column ?

    If we store some type of binary file (XLS, DOC, PDF, EML and so on, not only pictures) in BLOB column how can I show the different contents? We use designer and forms 9i with PL/SQL.
    How can I copy the files from BLOB to file in a directory or how can I pass BLOB's content to the proper application directly to open it?

    The mime type is just a string as explained above (e.g. application/pdf...). There are lot of samples here and on metalink.
    E.g. add a column mime_type varchar(30) to your blob table. Create a procedure similar to the following:
    PROCEDURE getblob
    (P_FILE IN VARCHAR2
    IS
    vblob blob;
    vmime_type myblobs.mime_type%type;
    length number;
    begin
         select document, mime_type into vblob,vmime_type from myblobs where docname = p_file;
         length := dbms_lob.getlength(vblob);
         if length = 0 or vblob is null then
         htp.p('Document not available yet.');
         else
         owa_util.mime_header(vmime_type);
         htp.p('Content-Length: ' || dbms_lob.getlength(vblob));
         owa_util.http_header_close;
         wpg_docload.download_file(vblob);                
         end if;
    exception
         when others then
         htp.p(sqlerrm);
    END;
    Create a DAD on your application server (refer to documentation on how to create a DAD).
    Display the blob from forms (e.g. on a when-button-pressed trigger):
    web.show_document('http://myserver:port/DAD/getblob?p_file=myfilename','_blank');
    For storing blobs in a directory on your db server take a look at the dbms_lob package.
    For storing blobs in a directory on your app server take a look at WebUtil available on OTN.
    HTH
    Gerald Krieger

  • How to view more than one file at a time in CS4?

    With OS 10.5, and a brand new CS4 Photoshop, I can open many Photoshop files at a time, but can only view one at a time. Must choose one at a time from the "tab". I need to have more than one picture open and showing at a time to work on them. How can I do that? What have I missed? Who can help? Thanks!

    "Here's the smart way for all of you on macs. Set up Exposé and a keystroke for 'Application windows'. Then with the press of a single key you can visualize, and swap between documents very easily. By I single keystroke I mean something like Right Control.
    Tabbed documents have hardly any genuine advantages for mac users, yet another example of interface decisions in the stupid direction."
    This is what I've been saying since I first saw the tabbed view in the new CS4.  On the Mac, tabbed view is a big step backwards as it actually breaks the superior Expose' method of viewing multiple windows and also switching among them.  I would also add that Control/Tab for non-tabbed windows is actually slightly faster than when they are tabbed.  So for the mac, I only needed a minute to decide that the tabbed view was merely change for the sake of change.  There are also operations that I do where I have to recreate a piece of art to match an existing piece.  In those situations I always have the original right next to the the new image.  Tabbed view destroys this as well.  So I don't use it.
    For the PC, tabbed views is possibly a tiny step forward, but it's such a small step that I'm not sure if I prefer to use tabs, or have that small amount of screen space that the tabs use.  There was no previously existing "good" method of viewing and moving among multiple windows of a single application on the PC and therefore, tabs might be a small improvement.  Unfortunately though it does seem that in order to bring us tabbed views in CS4, Adobe had to slightly 'break' the regular floating windows view.  On the PC the documents will actually float above the toolbars, palettes,etc making it very difficult to use if not impossible.  So, if you don't like using tabs, then you are really gonna suffer with non-tabbed view or suffer with the tabbed view.  On the Mac, it's the opposite problem.  Documents actually float up and underneath the top toolbar, covering the "close, maximize, minimize" buttons.  Generally I would say that Adobe has created a mess when the best solution was obvious.  Adobe should have copied the expose' method for it's CS4 suite.  Hopefully they will have enough feedback with CS4 to see the light and change it for CS5.  I see that Microsoft has mouse software that has already done just that on the PC, and there are a handful of independent efforts attempting to come up with something like expose' but generally with far less elegant and less "perfect" results.

Maybe you are looking for

  • Reset mypc feature in Windows 8.1

    Hi Team, I am working on reset feature in windows 8.1.I am able to successfully enable the feature and create a partition and able to reset.I followed below steps in order to work. Shrink the "c" driver with 4 GB space(Since I have only one partition

  • Dv6-1040ed​: Broken connector dvb-t receiver

    When using my laptop to watch tv my 6 year old sun tripped over the antennacable. Now both the connector in the computer and on the antenna are broken. Since there is no warranty left on my computer I would like to repair these. I will have to replac

  • Regarding Versioning of OBIEE11g reports

    Hi , I want to check the techniques fo report versioning in OBIEE such as using source control /within OBIEE11g . Can we integrate the source control with OBIEE 11g for report versioning . I know , it can be done for RPD .

  • [solved] pacman-3.5.1-1 woes

    Just so I dont hijack other threads ... but this is p... me off royally. I religiously do a 'pacman -Syu' just about every 2nd day - from a local repo that is updated (using lftp 'mirror' each night). I didn't update from Thursday until Monday  - and

  • Why we use like this?

    Hi In a sample coding of tutorial i saw the following lines. There what is the purpose of <String>? Can anybody explain me ? List<String> list = new ArrayList<String>(c);Thanks you so much.