IB isn't aware of my classes-- "Your First iPhone Application"

I'm trying to follow the "Your First iPhone Application" tutorial. I run into trouble on this page:
https://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhon e101/Articles/chapter5_section4.html
The text field does not autocomplete to "MyViewController" nor does it appear anywhere in the list in the dropdown menu. I have called the project "tutorial" and "tutorialAppDelegate" does appear in IB's dropdown menu; I don't know if that tells you anything.
Do I have to do something special to make IB aware that that class exists? I think IB has changed somewhat since the documentation has written because in mine, "View" is called "Custom View," and I have a fourth icon called "Application".

I'm afraid that doesn't really help at all. It tells me that I need to do what I am already trying to do:
1. Create a new nib file using the Cocoa Touch View template and configure it as follows:
a. Set the class of the File’s Owner proxy object to the class of your custom view controller.
b. Connect the view outlet of the File’s Owner to the view provided by the template.
I know that I need to do these things; what I don't know is how to get the GUI to let me. Do I need to put MyViewController in a specific part of the project in XCode? Do I need to flag it as a useable class somewhere? Could I have left out an option somewhere when I made the file?

Similar Messages

  • Your First iPhone Application Keyboard Won't go Away

    I followed the Document "Your First iPhone Application" Right to the letter and no matter how much I start at this code and the linking in the interface builder I can't figure out why the keyboard won't dismiss with the done button
    I put a break in the following code and it's not even getting launched when done is pressed
    - (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
    if (theTextField == textField) {
    [textField resignFirstResponder];
    return YES;
    Anyone have any ideas on what I should check? Everything else works in the program.

    MyViewController.h file contents
    #import <UIKit/UIKit.h>
    @interface MyViewController : UIViewController <UITextFieldDelegate> {
    UITextField *textField;
    UILabel *label;
    NSString *string;
    @property (nonatomic, retain) IBOutlet UITextField *textField;
    @property (nonatomic, retain) IBOutlet UILabel *label;
    @property (nonatomic, retain) NSString *string;
    - (IBAction)changeGreeting:(id)sender;
    @end
    I think this is what you are referring to. Also in the Interface builder I have the File's Owner class set to MyViewController
    I'm so confused I've felt like I've gone through the booklet 3 times threw trying to figure this out. If I can't get this keyboard to go away there is no way i'm going to be able to build a complex app

  • If you're getting your first iPhone 5, does it have to have the same carrier as your computer and T.V. at your house? Or could you get a different, cheaper carrier instead?

    I'm hopefully getting an iPhone 5 soon, & I'm just wondering if I could get a different carrier for the phone because I heard that AT&T is more expensive than the other carriers. At my house (for our computer & TV) we have AT&T. So, I'm just wondering if I could get a different carrier for the iPhone instead of AT&T.

    The iPhone is avaialble in the U.S. with the following major carriers:
    AT&T
    Verizon
    Sprint
    T-Mobile

  • Creating your first AIR application for Android with the Flex SDK

    This question was posted in response to the following article: http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac25d3d8c712b2d86751e-8000.html

    The name of the self-signed cert that is generated in the "Create the APK package file" step is sampleCert.pfx, but the name of the file in the next step is sampleCert.p12. This should be fixed.

  • Why isn't Java's Object class abstract?

    Why isn't java's Object class made as abstract class.

    manoj.java wrote:
    Why isn't java's Object class made as abstract class.The only good reason I can think of is that, back in the days prior to Java 5 and the incorporation of java.util.concurrent, bare Objects are useful as thread synchronization monitors (wait(), notify(), notifyAll()).
    --p                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Adobe muse (Tutorial) how to build your first website isn't right?

    hi there,
    I have a question i was trying to follow the tutorials from Katys bakery (how to build your first website in adobe muse )
    now im following it, ant some things aren't right, i think so.
    im from holland (so my english isn't that good, but good enough to read it, i hope so, or my english really sucks..
    My next question is: wil some one do te tutorial 2, and discus this project with me?
    i need to be sure if im wrong of the maker of the tutorial, It's just frustation u get, i want to learn something and i do only sometimes i can't get further and then im looking at the screen for a hour
    U can fint the tutorial here http://helpx.adobe.com/pdf/muse_reference.pdf
    Let me now soon
    tnx

    Please let us know if there is anything you need help with.
    Thanks,
    Sanjit

  • How can i run Java class form  other java application.

    Hi ,
    I have problem to run java class from my java application,
    I am using the class ClassLoader in order to launched the Java class , it�s work fine whenever, the class exist in the same folder , however , when i am trying to run class that is not in the current folder ,
    i got error (see below),
    Do you have any idea what is wrong?
    java.lang.ClassNotFoundException
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:110)
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:53)
         at Run.main(Run.java:31)

    What does "run an class" mean? You don't run classes. They're not executables.
    I bet your problem is the classpath. You are aware that the classloader looks only there? Unless it's an UrlClassLoader.

  • How did you feel about your first mac?

    As an early christmas present I received a 13 inch macbook air, 2GB RAM and 1.86GHz dual core cpu.
    I am mostly used to PC laptops running linux or often I put solaris on them. I study Computer Science and have Asperger's Syndrome.
    I got my mac as windows had too much bloatware and Linux was too unstable on my 64-bit hardware (needed 6 GiB RAM for large compilations). I was going to use the macbook air to take notes and some minor work between classes such as writing assembly subroutines, C and java. The primary use of this system was going to be as a personal assistant to have my calendar and files etc.
    The system is so powerful with a full 12 hours battery life when working on the localhost that it can out-do a 2.4GHz dual core with 6 GiB RAM PC running any OS. This system is now used for all my work due to it's capabilities and portability. After only one week with a mac I dont know how I lived without one, and my carer says it has made me show immense improvements day-to-day. I am now tempted to learn Objective-C as well as how to use Cocoa from Python to be more efficient, especially after seeing the perfection in this system.
    How did you feel when you got your first mac?

    A related question might be, what did you think about the introduction of the IBM PC?
    I had been designing digital systems and working with computers for a few years before the PC's introduction in 1981. The mainstay systems were 8 bit Z80 or 8085 machines running at 4 or 6 MHz. They ran CP/M with its command line interface. Although the maximum memory these systems could use was 64 MB, being a single user, single-task operating sytem, even the most resource-hungry programs (word processors for instance) ran very fast. CP/M itself needed only a few K.
    Dual floppy disk systems were common, 180 KB per disk unless you had double sided floppies - 360 K. The A drive booted the operating system, after which you could insert a program disk. The B drive held your data. I had one machine with a whopping 5 MB hard disk - the C drive. I treated it with special reverence.
    When rumors began about IBM producing its version of a desktop PC, many people including myself had grand expectations. Clearly Big Blue would emerge as the leader in desktop computers, since they had the resources to dictate what the standard would be. Everyone knew the others would be left in the dust. What kind of processor would it use? How much memory? Would it have a slimmed down version of the multiuser, multitasking operating system used in its System/34 minicomputer? Or would it resemble something that DEC used in its PDP-11?
    Well, when the IBM PC came out in 1981, needless to say it was an enormous disappointment. It wasn't much better than anything else I had already been using for three or four years already, except the PC was much, much more expensive. No hard disk unless you wanted to buy an upgraded power supply (more $$$) and then all they offered was 10 MB. Forget about multiple users or multitasking. It didn't even have the equivalent of CP/M's PIP. The whole thing seemed... intentionally crippled. This was supposed to be the future of computing? In my opinion it was a major step backward. The XT that followed it offered only minimal improvements. I rejected the IBM PC as not cost effective and kept using my CP/M dinosaurs.
    So, when Apple introduced the Macintosh a couple years later I finally saw, in the flesh, what I thought a computer ought to be. A totally bit mapped display, a robust 16/32 bit processor, real sound capability (everything before it could only "beep") and a true graphical UI. You could name a file anything you want, no 8x3 idiocy. +To this day+ Windows carries remnants of 8x3 filenames!
    The Macintosh blew away the PC, if not in performance, in its potential. Unlike the "crippled" PC the Mac seemed limitless. This was cool. The Mac wasn't without limitations though - there was no good way to install a hard disk for instance - but for some reason I considered those limitations trivial and believed they would be overcome in the near future. I waited for the first "upgrade" - the "Fat Mac" with a whopping 512K memory. Half a megabyte!
    I used that computer for several years, until the SE/30 came out, which I kept in service for about ten years. I ultimately expanded its memory to 32 MB while PC users were struggling with extended memory or expanded memory - you had to know which was which - to get beyond the PC's stupid 640K barrier. My 30 MB HD eventually grew small, but that was easily remedied with an external SCSI drive. Although the computer did everything I ever expected it to do, the Internet eventually made it functionally obsolete. It could run a browser (forget which one) but the black and white limitation made it marginally useful.
    I eventually replaced it with an iMac, which echoed the original Mac's introduction with its forward-thinking design. The iMac opened up a new world in much the same way the original Macintosh did in 1984.
    All my Macs still work.
    yoshitaka wrote:
    ... After only one week with a mac I dont know how I lived without one, and my carer says it has made me show immense improvements day-to-day.
    That pretty much sums it up.
    In retrospect, I believe that IBM and its marriage of convenience with Microsoft delayed the evolution of desktop computing a decade or more. I cringe whenever I think of the aggregate productivity loss and utter frustration shared by millions of PC / Windows devotees all these years.

  • How do you get your album's songs to stay together when you put them on your ipod/iphone, when some songs have a ft. artist?

    How do you get your album's songs to stay together when you put them on your ipod/iphone, when some songs have a ft. artist?
    Even when I try to change the featured artist in my I tunes, it won't stay with my other songs, and I want to be able to listen to my album in the order of the songs that the album has it.

    The iTunes/iPod software isn't set up to let you sync songs from more than one libray, but if you manually manage the iPod you can add tracks from multiple computers without removing the existing content. Personnaly I think syncing with a library is a much better way to manage your iPod, so I'd suggest you just copy the stuff you bought at work onto a memory stick, then take it home and import it into your iTunes library there.
    tt2

  • I just got a new phone I went to purchase a song and it said since you have a new device this is your first purchase you must answer the security questions I don't remember the answers to the questions what do I do

    I just get a new phone I wait to pie a song and my phone said this is your first purchase on this device so you have to answer these two security questions but I don't know what the answers are to the question I forget so how do I change them so I can purchase stuff

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (109133)

  • "Welcome to your new iPhone" screen for activated phone

    Today I had to exchange my iPhone 3G for the second time. That isn't a gripe, I'm thrilled Apple has been so responsive and flexible in working with me. (The issue had to do with a short in the headphone jack that would cause the unit to begin to play music when headphones were plugged in and sometimes unplugged, even on a locked/sleeping phone. Apple swapped them out no problem. I love these guys!)
    I'm on my third phone. However, every time I plug in my phone, in iTunes, I get the "Welcome to your new iPhone" window with the "Continue" button. When I click it, it takes me to the normal iTunes window looking at the settings for my phone. But the thing is, it does this every time I plug in phone.
    Any ideas? Some kind of cache or pref to clear/reset?
    Another odd thing. The Genius said that the OS on the phone he was giving me was a newer build than on the phone I had turned in. But when I look at the build number and the build number of the one you can download they are the same. Was there a different build preinstalled on some 3Gs than on others or what was downloaded via iTunes for a restore?

    For whatever weird reason, updating iTunes to 7.7.1 did the trick. It must have been some pref or cache thing that was overwritten with the update. While the question wasn't answered I guess it is fixed.
    I'd still be curious to know about that build version difference the Genius mentioned.

  • Obtaining list of classes used in an application

    I want to be able to obtain a list of all the classes and interfaces that an application uses
    I have been looking at the Class Object but with limited success
    I can get only limited things from the class
    eg the superclasses, interfaces, innerclasses, and public variables
    but I want to be able to get which private classes are used also
    the code below shows my test code to get info about a class
    Class testClass = (new java.awt.Panel()).getClass();
    Class classList[] = testClass.getClasses();
    for(int i = 0; i < classList.length; i++)
         System.out.println("class "+i+" = "+classList);
    Class innerClassList[] = testClass.getDeclaredClasses();
    for(int i = 0; i < innerClassList.length; i++)
         System.out.println("innerClass "+i+" = "+innerClassList[i]);
    java.lang.reflect.Field fieldList[] = testClass.getFields();
    for(int i = 0; i < fieldList.length; i++)
         System.out.println("field "+i+" = "+fieldList[i]);
    java.lang.reflect.Field innerFieldList[] = testClass.getDeclaredFields();
    for(int i = 0; i < innerFieldList.length; i++)
         System.out.println("innerField "+i+" = "+innerFieldList[i]);
    Object interfaceList[] = testClass.getInterfaces();
    for(int i = 0; i < interfaceList.length; i++)
         System.out.println("interface "+i+" = "+interfaceList[i]);
    Class nextSuper = testClass;
    while(nextSuper != null){
         System.out.println("Class "+nextSuper);
         nextSuper = nextSuper.getSuperclass();
    The reason that I want to do this is:
    When I use an application I want to be able to get the version of each of the classes I use.
    Ideally I would build up a set of classes used in the application (and the classes that those classes use, etc, etc)
    as I did this I would filter for things that start with my class hierarchy.
    and I would save the public String of each class that stores the version.
    Then heypresto I would have a list of all the classes of mine that are used and their version numbers.

    The idea is to write your own class which extends classloader, then use an instance of that to load the program you're trying to examine. When java wants to use a class it calls a classloader giving it the class name and package e.g. "java.lang.String". The classloader then checks to see if the class is already there, and if not attempts to load it, usually from a .class or .jar file.
    When classes loaded with a particular class loader go looking for other classes they call the classloader than loaded them.
    So if you load your main program class through your own classloader then any classes it demands (and those they demand), will also be looked for through your classloader. Since class loading is a dynamic process you actually need to run the application (having loaded your main class use getMethod to get the main method then Method.invoke(..).
    Mind you if java -verbose:class does the job (and it looks to me like it does) that's a lot simpler.
    Just run your program with that and analyse the resulting list of load events.

  • HT201303 your first game

    your first game

    MyViewController.h file contents
    #import <UIKit/UIKit.h>
    @interface MyViewController : UIViewController <UITextFieldDelegate> {
    UITextField *textField;
    UILabel *label;
    NSString *string;
    @property (nonatomic, retain) IBOutlet UITextField *textField;
    @property (nonatomic, retain) IBOutlet UILabel *label;
    @property (nonatomic, retain) NSString *string;
    - (IBAction)changeGreeting:(id)sender;
    @end
    I think this is what you are referring to. Also in the Interface builder I have the File's Owner class set to MyViewController
    I'm so confused I've felt like I've gone through the booklet 3 times threw trying to figure this out. If I can't get this keyboard to go away there is no way i'm going to be able to build a complex app

  • Setting up class root directory for application server

    Hi all,
    When i try to deploy my Ejnterprise java bean in sun one application server i get ar error dialog box " plz consult online assistance for setting class root directory" while loading the class files.I tried online but in vain.Can any one tell me how to set up the class root directory in sun one app server platform edition 8.
    But i had many other beans b4.suddenly m encoutering this problem from past 2 3 days.Kindly help me.
    Waiting for ur replies!
    Thanks,
    Akshatha

    Hi Eric and Jennifer
    A couple of answers to your questions:
    1. LC Forms is just an API - you have to build your own web application (or some other type of application) if you want your users to be able to interact with PDF forms.
    2. You can use Eclipse to build web applications. It's just one of many tools for doing so, but it's a fantastic development environment, and it's free.
    3. Lomboz no longer exists. It has been integrated directly into Eclipse as one of the sub-projects, "WebTools". The easiest way to install web tools is via the Callisto "packaging". This makes sure that you get all the right versions of everything you need. See:
    http://www.eclipse.org/callisto/
    4. The tutorial mentioned still provides some useful information, although names have been changed.
    5. There are lots of books about developing Web Apps in Java, using servlets or JSP.
    6. FormsIVS is just a small sample application that allows you to test rendering or prepopulating a form. It's not intended as an end-user product.
    7. If you're interesting in some assistance, we do provide training, mentoring, and turnky application development. Send an email to info "at" avoka.com if you want more info.
    Good luck...
    Howard
    http://www.avoka.com

  • HT5312 I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? th

    I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? then I was unable to enter until 8 hours then called Apple Japan 4 times each time threy asked me would you like to speak with an English speaker,I said yes then they told me sorry today is Sunday no English speakers ,but they refused to speak Japanese, then I called 5th time and a kind guy could speak English we were on 1and 1/2 hours he got me to log in but the reset key chain could not be completed still pending.
    He said do not mess with that ! then I got a text from somewhere to reset 4 pins suddenly it was very strange I said to him that I got this pin this morning but it said you can use maximum 3 hours it had a UK number and I told him I do not like this and will not enter the code he said do not do it if it is from the UK and then I said to him ok you did a lot to help but we can not go any further ! and we cut of I went back to my computer to re do the ID but I found everything a mess so I call and a stupid sounding Japanese women with a squeaky voice came on I was calm at first and they want your phone number your IMEI number your iPhone serial number date of birth Address email address it takes 10 munutes to check then they ask what are you caling about so I try to explain my keychain is broken or problems with language security questions and can not change my pasword because the security question have failed me so it is ONE BIG HEADACHE AND I START I GET STRESSED she says Do want an ENGLISH speaker ,I say yes ,that guy i talked to earlier but I never got his name and first time I ever talked to him but they said he is not here so I said ok and then she said today is sunday so call back in the morning ,I said ,well ok in Japanese but they make you feel stupid because they do not want to speak Jap@anese with none natives and they are to busy,And they feel that I should not bother them ,then I say that Apple Japan is trying to refuse Apple foreign customers and then she wants to hang up and ask me to visit the shop ,but they are the same I have a very bad time with Apple Japan since they do not discuss software problems or security with customer meaning if you have a problem they ask you to come on a time 20 minutes max so they do hardware test and say you phone is fine then I say no I can not reset my ID they say you must call call centre so I am going around in circles ,When I call English it is usually Australia so if my problem is in Japan surely if do not want me to talk to them in Japanese and they ask me to call Australia but every time my call charge is expensive after asking them is this free because I have Apple care they say yes but when the call goes to Australia 0120 277 535 it might change to paid call so I call then I have to ask is this charging they say we can not give you that information ! so what can I do I have have been at the computer and phone all day on my day off work and in tre week I am so busy and can not use my phone I can not work without it ,this new technology for you ,they can not cope with the fact that the customer have problems yet they do not want to deal with us because they can not solve it and so it shows them to be useless they like to walk around in their cool tee shirts and retro shop but when it comes to functionality we are unwelcome they got the money so do not return because apple is perfect that nothing should go wrong .
    But it does somehow my English security answers do not work on a Japanese Question especialy if I did not choose that question I set  up the multiple choice In English and wrote the answers in English or Roman and set them langauge preferences in English, do you really think you can correctly write english name or word in Japanese they write a police patrol car  pato caa パトカア they do not have r and l .So it is my choice to make my security easy for me and as difficult for others to hack.But they also have patororoo choo meaning ' now patrolling ' so why they have pato caa patrol car and patoro patrol and have thousands of Chinese words kanji they can find patrol.
    I am getting off the topic but I am at a loss to fix this problem when they hold the keys and i have all the info to verify my ID.

    You have to enter the Apple ID and password. You are running into the Activation Lock
    iCloud: Find My iPhone Activation Lock in iOS 7
    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

Maybe you are looking for

  • We had difficulty reading this feed. host parameter is null

    Hi, I'm fairly new to creating podcasts and have come across the 'host parameter is null' error when submitting my podcast to itunes. The RSS feed validates )bar the <itunes:link> tag to which I understand Feed Validator doesn't yet support due to pr

  • Error message on ejecting USB device even when ejecting properly

    I always click on the eject symbol in Finder before removing a usb device but I usually still get the message that the device was not removed correctly and damage may occur.  I have also gotten the message when using Eject from the Menu.  Anyone else

  • Iphone shuts down when trying to sort email into folder.

    When I click on a specific email and try to sort it into one of my folders on my phone, the email program shuts down and goes back to the home screen. I did a hard reset and checked for updates for the iphone.  It was working yesterday and now it's n

  • Persisting Cut-off or unplayed notes problem in Logic Pro X

    Hi Guys, I've been having this persisting problem in LogicPro X. Let me just explain it here, I have a MIDI file which i got from the net, i played it in my piano role software and it was fine, but one i just imported the midi into Logic and just exp

  • Lost Photoshop CS6 after crash

    The other day I had a computer crash now I can't see Photoshop CS6 application icon or upgrade it on my Creative Cloude.  It looks like it does uphrade only to at the end come up with an error U44M2P7.