Original Post
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.