Skip to content
Browse files

Updated to version 2.4.2

  • Loading branch information...
1 parent 58459ba commit b4bd2ee516e2f2a6c85f87b58e0a27d7551e3f59 @nicklockwood committed
Showing with 10 additions and 6 deletions.
  1. +2 −2 BaseModel/BaseModel.h
  2. +3 −3 BaseModel/BaseModel.m
  3. +1 −1 LICENCE.md
  4. +4 −0 RELEASE NOTES.md
View
4 BaseModel/BaseModel.h
@@ -1,7 +1,7 @@
//
// BaseModel.h
//
-// Version 2.4.1
+// Version 2.4.2
//
// Created by Nick Lockwood on 25/06/2011.
// Copyright 2011 Charcoal Design
@@ -88,7 +88,7 @@ extern NSString *const BaseModelSharedInstanceUpdatedNotification;
//loading and saving the model from a plist file
+ (instancetype)instanceWithContentsOfFile:(NSString *)path;
- (instancetype)initWithContentsOfFile:(NSString *)path;
-- (void)writeToFile:(NSString *)path atomically:(BOOL)atomically;
+- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)atomically;
- (BOOL)useHRCoderIfAvailable;
//resourceFile is a file, typically within the resource bundle that
View
6 BaseModel/BaseModel.m
@@ -1,7 +1,7 @@
//
// BaseModel.m
//
-// Version 2.4.1
+// Version 2.4.2
//
// Created by Nick Lockwood on 25/06/2011.
// Copyright 2011 Charcoal Design
@@ -505,7 +505,7 @@ - (instancetype)initWithContentsOfFile:(NSString *)filePath
return ((self = nil));
}
-- (void)writeToFile:(NSString *)path atomically:(BOOL)atomically
+- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)atomically
{
NSData *data = nil;
Class CryptoCoderClass = NSClassFromString(@"CryptoCoder");
@@ -524,7 +524,7 @@ - (void)writeToFile:(NSString *)path atomically:(BOOL)atomically
{
data = [NSKeyedArchiver archivedDataWithRootObject:self];
}
- [data writeToFile:[[self class] BaseModel_saveFilePath:path] atomically:YES];
+ return [data writeToFile:[[self class] BaseModel_saveFilePath:path] atomically:YES];
}
View
2 LICENCE.md
@@ -1,6 +1,6 @@
BaseModel
-version 2.4.1, November 26th, 2012
+version 2.4.2, December 2nd, 2012
Copyright (C) 2011 Charcoal Design
View
4 RELEASE NOTES.md
@@ -1,3 +1,7 @@
+Version 2.4.2
+
+- writeToFile:atomically: now returns a boolean indicating success or failure.
+
Version 2.4.1
- BaseModel will no longer attempt to treat resource files as JSON unless the file has a "json" or "js" extension

0 comments on commit b4bd2ee

Please sign in to comment.
Something went wrong with that request. Please try again.