-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from marty-suzuki/improve-delegate-proxy
Add denying forward message to specific object in DelegateProxyBase
- Loading branch information
Showing
13 changed files
with
284 additions
and
160 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// DenyDelegateMethod.h | ||
// ReverseExtension | ||
// | ||
// Created by marty-suzuki on 2021/09/14. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface DenyDelegateMethod : NSObject | ||
|
||
@property (readonly, nullable, nonatomic, weak) id delegate; | ||
@property (readonly, nonnull, nonatomic, assign) SEL selector; | ||
|
||
- (nonnull instancetype)initWithDelegate: (id __nonnull)delegate | ||
selector: (SEL __nonnull)selector; | ||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// DenyDelegateMethod.m | ||
// ReverseExtension | ||
// | ||
// Created by marty-suzuki on 2021/09/14. | ||
// | ||
|
||
#import "DenyDelegateMethod.h" | ||
|
||
@interface DenyDelegateMethod () | ||
@property (readwrite, nullable, nonatomic, weak) id delegate; | ||
@property (readwrite, nonnull, nonatomic, assign) SEL selector; | ||
@end | ||
|
||
@implementation DenyDelegateMethod | ||
|
||
- (instancetype)initWithDelegate: (id)delegate | ||
selector: (SEL)selector { | ||
self = [super init]; | ||
if (self) { | ||
self.delegate = delegate; | ||
self.selector = selector; | ||
} | ||
return self; | ||
} | ||
|
||
@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
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
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
10 changes: 6 additions & 4 deletions
10
ReverseExtensionSample/Pods/Local Podspecs/ReverseExtension.podspec.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.