# PSTDelegateProxy **Repository Path**: mirrors_steipete/PSTDelegateProxy ## Basic Information - **Project Name**: PSTDelegateProxy - **Description**: A simple proxy that forwards optional methods to delegates - less boilerplate in your code! - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README PSTDelegateProxy ================ A simple proxy that forwards optional methods to delegates - less boilerplate in your code! When calling optional delegates, the regular pattern is to check using respondsToSelector:, then actually call the method. This is straightforward and easy to understand: ``` objective-c id delegate = self.delegate; if ([delegate respondsToSelector:@selector(resizableViewDidBeginEditing:)]) { [delegate resizableViewDidBeginEditing:self]; } ``` What we really want is something like this: ``` objective-c [self.delegateProxy resizableViewDidBeginEditing:self]; ``` Read more on my blog: [Smart Proxy Delegation](http://petersteinberger.com/blog/2013/smart-proxy-delegation/) License ======= MIT License.