Browse files

Formatting

  • Loading branch information...
1 parent 244934b commit a9921fba536e862d83c89fbbd3ff6f4254f157f9 @mattt mattt committed Oct 25, 2013
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 #>
+}

0 comments on commit a9921fb

Please sign in to comment.