How does UIApplicationMain figure out its delegate?

I didn't mean to turn this blog into a list of bookmarks, but I was curious how my iOS app got from main.m to MyAppDeletegate.m, and this is just too good an explanation to not document:


I found this when I was wondering, "How the hell does the UIApplicationMain figure out its delegate?" Hence, the title of this post. The answer is so simple and straightforward that it is stunning. Thanks in no small part to Ole Begemann, of course.

No comments:

Post a Comment