Created
November 23, 2009 06:17
-
-
Save hammerdr/240924 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
- (void)loadEverything | |
{ | |
loginController = [[LoginWindowController alloc] init...]; | |
[loginController setDelegate:self]; | |
} | |
- (void)someFunction | |
{ | |
// do something cool | |
} | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation LoginWindowController... | |
{ | |
id delegate @accessors; // this creates the delegate and setDelegate accessors! | |
} | |
… | |
- (void)callSomeFunction | |
{ | |
[delegate someFunction]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment