A question about backend of creating the app with Xcode

Hi,
I'm a new iphone developer who just started to learn how to create iphone apps.
I just started to learn about view-based applications.
When I select view-based applications, XCode will automatically generate some files for me.
For example, if a create a new project called "A", XCode will generate files like "AViewController.m", "AAppDelegate.m", and "main.m".
but I don't see anywhere in those files where it's actually creating the instance of "AViewController" or "AAppDelegate".
So at where and at which file are the instances of "AViewController" and "AAppDelegate" created?
Also where is the instance of the main application created?(not A.app if you know what I mean)

I hope I can add to the correct answer posted by J D McIninch since the solution to this thread might provide a good example of how xib objects work--i.e. what I tried to explain in your [previous thread|http://discussions.apple.com/message.jspa?messageID=11479911#11479911].
Daviiidddd wrote:
So at where and at which file are the instances of "AViewController" and "AAppDelegate" created?
Open MainWindow.xib and make sure the xib window is visible by selecting Document from the Windows menu. You should see a solid orange cube labeled "A App Delegate", and a circular icon labeled "A View Controller". These icons represent IB objects. The objects are described by xml elements in the xib file, and that xml will direct the system to create the real objects in memory when the xib is loaded. While it's not technically correct to say the real objects are "created by IB", we can say that the specification for the real objects is built in IB. In other words, the xib file which results from an IB editing session contains a tree of specifications which will be used to create real objects at runtime.
Btw, to graphically see the tree of xib objects (the "view hierarchy", find the +View Mode+ switch in the upper-left corner of the xib window. Select the Center position of that switch so the window displays a two column table with a tree of small icons to the left. This is the xib view I recommend for all your work.
Also where is the instance of the main application created?(not A.app if you know what I mean)
The Application object is created by the [UIApplicationMain()|http://developer.apple.com/iPhone/library/documentation/UI Kit/Reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/doc/ui d/TP40006894-CH3-SW7] function called by main() in main.m. The MainWindow.xib is then loaded, and the Application object is given ownership of that xib. This means that the File's Owner proxy object represents the real Application object, so all connections to File's Owner become connections to the real Application object.
Note that the File's Owner cube is transparent. This is IB's way of denoting a proxy object. The First Responder is actually a proxy of a different kind, but let's not go there now.
\- Ray

Similar Messages

  • Question about AppleScript, iTunes and the app Proximity...

    So I have this application Proximity, which uses bluetooth's proximity to the cpu to run both an out-of-range script and and in-range script. I'm currently using it to activate my screensaver with password lock and vice versa. I'm also using it to sync my Bluetooth phone via iSync. Finally, I'm using it to pause and pause/play iTunes when I come and go from the cpu. The problem I was having was that if I had iTunes closed the script would still open it and then play the first tune. If iTunes is closed I don't want it to start playing. I came up with a workaround, but it seems a little sloppy. Here is what I came up with, but I want to make it as seamless and clean as possible. This is a script for when I enter the proximity of the cpu. If it's in a paused state it will play. If it's in a stopped state (it will quit) or closed from the get go, iTunes will open then subsequently quit.
    -- PlayPause iTunes
    tell application "iTunes"
    if player state is paused then
    playpause
    end if
    end tell
    tell application "iTunes"
    if player state is stopped then quit
    end tell

    How to Get Apps From the App Store Without a Credit Card
    http://ipadhelp.com/ipad-help/how-to-get-free-apps-from-the-app-store-without-a- credit-card/
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    If None is not available - On your computer launch iTunes and click "iTunes Store" in the left navigation pane. Click the "down arrow" next to your name at the top right side of the page and click "Account." Enter your username and password and click "View Account" to log into your account information. Next to your Payment Type, click "Edit." Select the "None" button and click "Done." Confirm that your card has been removed by returning to the Apple account information screen. Under Payment Type, it should say that there is no credit card on file.
     Cheers, Tom

  • My question is, when i bought my sons ipod I created the account with my email, the I purchased an ipod as well and used to same account.  I want him to have his own account so he can't access my itunes money.

    My question is, when I bought my sons ipod I created the account with my emai, then I purchased an ipod as well, so we share an account.  I want him off of my account.  How do you do that, he has his own computer.

    His own password for what? You can only have one password for one account.
    He can use your account for items and he can also use his own account. To purchase items with a different account you go to Settings>Store and sign out and sign into the other account.
    To update apps you have to sign into the account the purchased them.

  • How do I retain my apps after I change my apple ID? Right now I'm unable to update any of the apps with the old apple ID. I get an error message about an invalid id or password. If I delete my apps and start over, I may lose the apps that I purchased...

    How do I retain my apps after I change my apple ID? Right now I'm unable to update any of the apps with the old apple ID. I get an error message about an invalid id or Password. If I delete my appos and start over, I may lose the apps that I purchased (like the ones for $5 +....

    Apps are always tied to the ID that was used to purchase them originally. Did you try entering your old password and see if that works?
    If you need to sign out of your old account go to Settings>Store>Tap on your ID and sign out. Sign in with the new one.
    you can also access your ID in the featured tab of the App Store. Swipe to the bottom of the screen and you will find it there as well.

  • Question regarding  to changing the region of the app with remaining balance

    Question regarding  to changing the region of the app with remaining balance
    Hello, I am attempting to change the location of my app store which has remaining balance of 0.01$. In order to change the location of the store, it requires  spending all the remaining  balance. As my balance is too low " 0.01$" to buy an app from the store, I am not able to change the region of my app store. Moreover, Since I am not a residence in USA, I am not able to use my credit card either.
    I am wondering if it is possible to change the location of my app store with a remaining balance OR  to delete my current balance.
    Thanks
    Nejem 

    Click here and request assistance.
    (85511)

  • How do I delete apps from my app store on my Iphone? not talking about holding down the app and hiting X to delete. talking about cmpletely deleting from the app store on the phone. Under 'PURCHASED" and "NOT ON THIS IPHONE" ?

    How do I delete apps from my app store on my Iphone? not talking about holding down the app and hiting X to delete. talking about cmpletely deleting from the app store on the phone. Under 'PURCHASED" and "NOT ON THIS IPHONE" ?

    Also having the same problems here.
    Yesterday, I have downloaded the APPSGONEFREE and there is one App called the Victorian Mystery that is still free and i downloaded it. After a few minutes it pop up on my iphone homescreen,  it can't be loaded. So I tried to delete it but it cant be deleted. (there is no x mark on top of it). I then use my itunes to synchronize it  through my iphone but it wasnt able to delete it. I then bought the apps at apsstore ( Victorian Mystery), which is not free for today and I synchronize and it cant be installed on my Iphone. I just cant delete the APP. I need help.

  • TS3297 Everytime i purchase from the apps store it always show the security questions and i cant buy the apps i want because the questions are not answerable. Pls help....

    Everytime i purchase from the apps store it always show the security questions and i cant buy the apps i want because the questions are not answerable. Pls help....

    I think you need to reset those questions. You'll need to call the tech support for your country, ask to be connected to the Account Security Team and then ask if they can reset the questions for you.
    http://support.apple.com/kb/HE57

  • N8 - about Availing premium applications (the app ...

    about Availing premium applications (the app that requires payment), is it based on your Network if you can download app that requires payment? i mean should the network support buying premium app?
    i usually able to download app using my former network, but i switched to another network yet now on Nokia Store i cant seem to see any App that requires payment, all of it are free. and if go downloading specific app that requires payment it always tell error or the app isn't compatible for my N8.
    it isn't like that before. so i was thinking maybe this was based on Network if they support payment for a specific app? am i right?

    im from Philippines, we have the smart and sun network here, i was a former Smart User which i was able to download apps, but now i switched to Sun Network, there's no premium app available for me. im really not sure if im right with my hunch that downloading premium apps is based on the network if they support it. i thought whatever your network is, you can download any app even those that requires payment, so that's not the case?

  • Can Flash CS5.5 create ios app with in game purchase function?

    Can I use flash CS5.5 to create ios app with in game purchase function and other ios specific functions? Is there any limitation compare to using ios native development environment? Same questions for Android OS.
    Thank you very much.

    First disable autoplay. It gave errors for me. Try to make the movie play with the play() command.
    to embed the movie in your air bundle, just go to publish settings for your flash project. Then in that screen go to the player settings.
    In the first GENERAL tab you'll see a the bottom that you can add files to your project
    Propably there is allready your .swf and an .xml file in there.
    Using the + icon you can add your video.
    Make sure that your video is in the same directory as your . FLA file and you can use it as is (by name)
    If for example your flashfile is in c:\mytest\mytest.fla and the video in c:\mytest\videos\myvideo.flv , then you will have to load your video as "videos/myvideo.flv" with a FORWARD slash, never use \
    Good luck

  • Creating an app with InDesign (and Creative Cloud)

    Help needed!
    I have InDesign (through Creative Cloud) and want to create an app (i am also apart of the Apple Developer Program through our company). I have watched the informative video that takes us through all the steps ("InDesign Layout to iPad App"), but when i go to 'Folio Builder' there isn't a tab called 'Create App'). I dont know what i am missing, has this button changed to something else or has the process changed? I have been going through everything and i cant find the answer.
    I have zero qualifications in creating apps (this first one is a muck-around to try out a few things i have learnt from watching videos and reading), but it was seeming quite easy through InDesign, before i got to this last step.
    THANK-YOU!!!!!!!!!!!!!!

    Creating an app with InDesign requires downloading and learning the Adobe Digital Publishing Suite. The DPS forum is best place to learn what you'll need to do so I'm moving your question there.

  • My Apple id was disabled and had to make a new one for iTunes but it's not letting me erase then re download the app with the new Apple ID

    My Apple id was disabled and had to make a new one for iTunes but it's not letting me erase then re download the app with the new Apple ID   Just got an iPad air 2 so my iCloud and family sharing is with the one that's disabled. Which I don't know how to switch to my new one, so I trying to erase my apps that won't load and just re download them with my new ID that is being used with the iTunes n app store but I can't even find most in purchased plus it's saying that I can't get it cuz that ID is not with family sharing but I donT know why it would not be. Please someone help.

    OOk so I have my new Apple id in my iTunes account but my old Apple ID is the one that is in the iCloud account which is the Apple ID have been using for years and the reason I cannot get it on this abled is because somebody was using my credit card or debit card that was on file for family sharing and it was a stolen iPhone from my account so they had to disable my Apple ID and I could not use my debit card anymore on any Apple ID ever again they said because of it so I can't get it not to be disabled and I can't sign into iTunes with it I already have signed out and signed in with my new Apple ID for iTunes it's just iCloud is not letting me load anything so pretty much what I've been doing is I have to erase every app and then re-dumb going to iTunes and re-download the apps again but the only issue is that I still have a disabled Apple ID as my iCloud settings and my iCloud family sharing in all of that so I'm wondering how or is it possible to change my Apple ID for iCloud specifically because when I go into Icloud and settings and go into my name where my Apple ID is the one that's disabled it doesn't say anything about log out or sign out or anything like that it just says to put the password for it so is there a way to change the Apple ID for my iCloud so that my iTunes in my iCloud is the same Apple ID?

  • I can't download the apps with big size like need for spees, but in apps with normal size(less than 100KB)there is no problem,is there any body who can help me?

    I can't download the apps with big size like need for spees

    Have a little patience. 4 minutes is only a short time for someone to find your post and reply to it. Also clicking on "This Solved My Problem" marks your problem as solved so many folks that may otherwise help will pass the question by since it is "solved."
    I suggest you start a new question that gives a good title to a specific problem. Then in the body of the thread describe the problem in detail, tell us what steps you have tried so far to correct the problem, what happened, and what error messages you received.

  • When will we be able to create Android Apps with DPS single edition?

    When will we be able to create Android Apps with DPS single edition?

    It's something that we would like to do, but it is unlikely to happen during the first half of 2013.
    Neil

  • How can I automatically create the files with serie-name?

    Hello, Everyone,
    I have a question again.
    How can I automatically create the file with a serie-filename?
    e.g. I have a program, it will repeat 5 times, and every time it will create a bmp-file, and I want to let this program automatically save these 5 files with a Serie-filename like File001.bmp, File002.bmp, .... File005.bmp.
    How can I do it?`
    Thanks a lot.
    Regarts,
    Johnny

    Hi Deepu,
    one more comment
    The format code should be "%04d" to get leading zeros and have filenames with same length...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I am unable to update my apps... in my purchases page it appears as "update", then a message tells me to log on with the Apple ID I purchased the app with... Well I have tried my two different accounts and neither one will work, can someone help ??

    I am unable to update my apps... in my purchases page it appears as "update", then a message tells me to log on with the Apple ID I purchased the app with... Well I have tried my two different accounts and neither one will work, can someone help ??
    And is there any way to sync all my purchases and accounts to just have one... It is a bit stupid that you dont even get a list of something of what account you may of used, or some kind of hint, so you could log on to the right account. I am really stuck ...
    Please Advise......

    You can't merge accounts. But you can check your purchase history:
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers
              http://support.apple.com/kb/HT2727
    Also, what may seem stupid to you... may be a protection of privacy to others.

Maybe you are looking for