zwaldowski/BlocksKit — Issue #51: Experimental feature parity: automatic delegate
Author: zwaldowski
Created: 2011-12-20 01:05:18+00:00
State: open
Labels: experimental

A2BlockDelegate is wonderfully, incomparably awesome but the experimental branch needs to be in complete feature parity (not necessarily API compatible) with current BlocksKit. BlocksKit needs to "just work". The following snippet is currently valid in BlocksKit (though it's using the new API):

- (IBAction)sendMessage {
MFMailComposeViewController *mailCompose = [MFMailComposeViewController new];
[mailCompose setSubject:@"BlocksKit is great!"];
mailCompose.completionBlock = ^(MFMailComposeViewController *vc, MFMailComposeResult result, NSError *err) {
NSLog(@"Yay!");
};
[self presentModalViewController:mailCompose animated:YES];
}

This currently cannot be accomplished in the experimental branch without setting `mailCompose.mailComposeDelegate`, even if it is just to `nil`.