Skip to content

becomedragon/NSCodingHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSCodingHelper

an easy way to use NSCoding ^_^

add two line of code in the .m file ,and run it!

 #import "property.h"
 #import "CXLCodingHelper.h"

@implementation property

- (id)initWithCoder:(NSCoder *)aDecoder {
   self = [super init];
    if (!self) {
       return nil;
   }
   self = [CXLCodingHelper decodeClass:self decoder:aDecoder];
   return self; 
 }


 -(void)encodeWithCoder:(NSCoder *)aCoder {
     [CXLCodingHelper encodeClass:self encoder:aCoder]; 
 }

nothing else ..

About

an easy way to use NSCoding ^_^

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published