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

Commit a9921fb

Browse files
committed
Formatting
1 parent 244934b commit a9921fb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

nscoding.m

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// NSCoding protocol methods
1+
// NSCoding Protocol Methods
22
// Placeholders for NSCoding protocol methods
33
//
44
// Platform: All
@@ -7,16 +7,17 @@
77

88
#pragma mark - NSCoding
99

10-
- (instancetype)initWithCoder:(NSCoder *)aDecoder
11-
{
10+
- (instancetype)initWithCoder:(NSCoder *)decoder {
1211
self = [super init];
13-
if (self) {
14-
<#var#> = [aDecoder decodeObjectForKey:<#(NSString *)#>];
12+
if (!self) {
13+
return nil;
1514
}
15+
16+
<# implementation #>
17+
1618
return self;
1719
}
1820

19-
- (void)encodeWithCoder:(NSCoder *)aCoder
20-
{
21-
[aCoder encodeObject:<#var#> forKey:<#(NSString *)#>]
22-
}
21+
- (void)encodeWithCoder:(NSCoder *)coder {
22+
<# implementation #>
23+
}

0 commit comments

Comments
 (0)