Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Oct 25, 2013
1 parent 244934b commit a9921fb
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions nscoding.m
@@ -1,4 +1,4 @@
// NSCoding protocol methods
// NSCoding Protocol Methods
// Placeholders for NSCoding protocol methods
//
// Platform: All
Expand All @@ -7,16 +7,17 @@

#pragma mark - NSCoding

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
- (instancetype)initWithCoder:(NSCoder *)decoder {
self = [super init];
if (self) {
<#var#> = [aDecoder decodeObjectForKey:<#(NSString *)#>];
if (!self) {
return nil;
}

<# implementation #>

return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:<#var#> forKey:<#(NSString *)#>]
}
- (void)encodeWithCoder:(NSCoder *)coder {
<# implementation #>
}

0 comments on commit a9921fb

Please sign in to comment.