AppController vs Delegate? Is it the same thing?


Is AppController functioning as a Delegate? I’m still not entirely sure what a Delegate actually is.


They are not the same thing. But an AppController can become a delegate, and usually is, of NSApplication in OSX, and of UIApplication in iOS.

NSApplication singleton relies on its delegate, AppController, to provide it with certain information; for example, whether the application should terminate when its last window closes. It also informs the delegate of occurrences of certain events; for example, application has become active.

Similarly for the iOS.

You may want to check out the NSApplicationDelegate Protocol Reference and UIApplicationDelegate Protocol Reference.


Thanks for the reply. Apple’s documentation cleared it up a bit for me.