Where is the loop?


Maybe a stupid question, but I’m a little confused. Why the program in chapter 23 needed a run loop and this one doesn’t? Where the program “sits and waits” for something to happen?


In main.m, you should see line like this:

return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

UIApplicationMain() creates and starts the runloop for you.


Thank you, Aaron.