• Advertisement
Sign in to follow this  

What does "delegate design pattern" mean?

This topic is 3317 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement