Sign in to follow this  
riruilo

What does "delegate design pattern" mean?

Recommended Posts

Hi dudes! Trying to program something on the iPhone I see the main function calls this function: int UIApplicationMain ( int argc, char *argv[], NSString *principalClassName, NSString *delegateClassName ); And I have to write some class on the last parameter, which means this: "delegateClassName: The name of the class from which the application delegate is instantiated. If principalClassName designates a subclass of UIApplication, you may designate the subclass as the delegate; the subclass instance receives the application-delegate messages. Specify nil if you load the delegate object from your application’s main nib file." What does exactly "delegate" mean? Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this