Skip to main content
gamedev.net
🔒 Locked

What does "delegate design pattern" mean?

Started by riruilo 0 replies 600+ views
Original Post
riruilo
riruilo
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.
I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time, like tears in rain. Time to die.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.