Created
May 21, 2009 14:58
-
-
Save mkhl/115500 to your computer and use it in GitHub Desktop.
Define a protocol MyProtocol that inherits from the NSObject protocol
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
// Define a protocol MyProtocol that inherits from the NSObject protocol. | |
// This way, calls to NSObject messages (release, retain, …) don’t warn. | |
// Source: http://www.mobileorchard.com/idprotocol-retainrelease-and-protocol-inheritance/ | |
@protocol MyProtocol<NSObject> | |
- (void)someMessage; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment