Where is the loop?


#1

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?


#2

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.


#3

Thank you, Aaron.