Skip to content

Commit f0585a0

Browse files
committed
added NSObject when NSCoding is required.
1 parent 924a463 commit f0585a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftyJSONAccelerator/SJModelGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public class ModelGenerator {
197197

198198
if self.supportNSCoding! {
199199
if let nscodingBase = try? String(contentsOfFile: NSBundle.mainBundle().pathForResource("NSCodingTemplate", ofType: "txt")!) {
200-
content = content.stringByReplacingOccurrencesOfString("{NSCODING_PROTOCOL_SUPPORT}", withString: ", NSCoding")
200+
content = content.stringByReplacingOccurrencesOfString("{NSCODING_PROTOCOL_SUPPORT}", withString: ", NSCoding, NSObject")
201201
content = content.stringByReplacingOccurrencesOfString("{NSCODING_SUPPORT}", withString: nscodingBase)
202202

203203
content = content.stringByReplacingOccurrencesOfString("{ENCODERS}", withString: encoders)

0 commit comments

Comments
 (0)