Generic delegate class for Cocoa and Cocoa Touch; uses Blocks to respond to delegate methods.