Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Formatting

  • Loading branch information...
commit a9921fba536e862d83c89fbbd3ff6f4254f157f9 1 parent 244934b
@mattt mattt authored
Showing with 10 additions and 9 deletions.
  1. +10 −9 nscoding.m
View
19 nscoding.m
@@ -1,4 +1,4 @@
-// NSCoding protocol methods
+// NSCoding Protocol Methods
// Placeholders for NSCoding protocol methods
//
// Platform: 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 #>
+}
Please sign in to comment.
Something went wrong with that request. Please try again.