Created
June 30, 2011 10:46
-
-
Save hartbit/1055999 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @protocol ChildProtocol; | |
| @protocol ParentProtocol <NSObject> | |
| @property (nonatomic, strong, readonly) id<ChildProtocol> child; | |
| @end | |
| @protocol ChildProtocol <NSObject> | |
| @property (nonatomic, weak, readonly) id<ParentProtocol> parent; | |
| @end | |
| @class Child; | |
| @interface Parent : NSObject <ParentProtocol> | |
| @property (nonatomic, strong) Child* child; | |
| @end | |
| @interface Child : NSObject <ChildProtocol> | |
| @property (nonatomic, weak) Parent* parent; | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment