Skip to content

Instantly share code, notes, and snippets.

@hammerdr
Created November 23, 2009 06:17
Show Gist options
  • Save hammerdr/240924 to your computer and use it in GitHub Desktop.
Save hammerdr/240924 to your computer and use it in GitHub Desktop.
...
- (void)loadEverything
{
loginController = [[LoginWindowController alloc] init...];
[loginController setDelegate:self];
}
- (void)someFunction
{
// do something cool
}
@end
@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