Created
December 9, 2010 03:35
-
-
Save jawngee/734299 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
// | |
// SomeObject.h | |
// | |
#import <Cocoa/Cocoa.h> | |
@interface SomeObject : NSObject { | |
NSMutableArray *things; | |
NSMutableDictionary *someOtherThings; | |
} | |
@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
// | |
// SomeObject.m | |
// | |
#import "SomeObject.h" | |
@implementation SomeObject | |
- (id)init { | |
if (self=[super init]) { | |
things=[[NSMutableArray arrayWithObjects:@"one",@"two",@"three",nil] retain]; | |
someOtherThings=[[NSDictionary alloc] init]; | |
} | |
return self; | |
} | |
-(void)dealloc { | |
[things release]; | |
[someOtherThings release]; | |
[super dealloc]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment