Created
October 27, 2013 22:52
-
-
Save PsychoH13/7188888 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
// New Style. | |
// MyClass.h | |
@interface MyClass : NSObject | |
- (void)foo; | |
@end | |
// MyClass.m | |
#import "MyClass.m" | |
@implementation MyClass | |
- (void)foo | |
{ | |
[self bar]; | |
} | |
- (void)bar | |
{ | |
// Something. | |
} | |
@end |
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
// MyClass.m | |
#import "MyClass.m" | |
@interface MyClass () | |
- (void)bar; | |
@end | |
@implementation MyClass | |
- (void)foo | |
{ | |
[self bar]; | |
} | |
- (void)bar | |
{ | |
// Something. | |
} | |
@end |
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
// Old style #2. | |
// MyClass.h | |
@interface MyClass : NSObject | |
- (void)foo; | |
@end | |
// MyClass.m | |
#import "MyClass.m" | |
@implementation MyClass | |
- (void)bar | |
{ | |
// Something. | |
} | |
- (void)foo | |
{ | |
[self bar]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment