Skip to content
Browse files

Rename AutomagicCoding to AutoMagicCoding everywhere.

  • Loading branch information...
1 parent c22cb2f commit ccd385b707121999b266cef3ea7571e4ba09477e @psineur committed
View
24 AutoMagicCoding-iOS.xcodeproj/project.pbxproj
@@ -14,12 +14,13 @@
6D6D28E41411608600B7EA19 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D6D28BC1411608600B7EA19 /* UIKit.framework */; };
6D6D28E51411608600B7EA19 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D6D28BE1411608600B7EA19 /* Foundation.framework */; };
6D6D28E61411608600B7EA19 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D6D28C01411608600B7EA19 /* CoreGraphics.framework */; };
+ FD8C3CE3149E366200FAA45D /* NSObject+AutoMagicCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = FD8C3CE2149E366200FAA45D /* NSObject+AutoMagicCoding.m */; };
+ FD8C3CE4149E366200FAA45D /* NSObject+AutoMagicCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = FD8C3CE2149E366200FAA45D /* NSObject+AutoMagicCoding.m */; };
+ FD8C3CE5149E366200FAA45D /* NSObject+AutoMagicCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = FD8C3CE2149E366200FAA45D /* NSObject+AutoMagicCoding.m */; };
FDB80D0C149E268F001E95AA /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D6D28E21411608600B7EA19 /* SenTestingKit.framework */; };
FDB80D0D149E268F001E95AA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D6D28BC1411608600B7EA19 /* UIKit.framework */; };
FDB80D0E149E268F001E95AA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D6D28BE1411608600B7EA19 /* Foundation.framework */; };
FDB80D0F149E268F001E95AA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D6D28C01411608600B7EA19 /* CoreGraphics.framework */; };
- FDB80E00149E3010001E95AA /* NSObject+AutomagicCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = FDB80DBD149E300F001E95AA /* NSObject+AutomagicCoding.m */; };
- FDB80E01149E3010001E95AA /* NSObject+AutomagicCoding.m in Sources */ = {isa = PBXBuildFile; fileRef = FDB80DBD149E300F001E95AA /* NSObject+AutomagicCoding.m */; };
FDB80E02149E3010001E95AA /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = FDB80DBE149E300F001E95AA /* README.md */; };
FDB80E03149E3010001E95AA /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = FDB80DBE149E300F001E95AA /* README.md */; };
FDB80E04149E3010001E95AA /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = FDB80DBE149E300F001E95AA /* README.md */; };
@@ -80,9 +81,9 @@
6D6D28C01411608600B7EA19 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
6D6D28E11411608600B7EA19 /* AutoMagicCoding-iOSTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "AutoMagicCoding-iOSTests.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
6D6D28E21411608600B7EA19 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
- FDB80D16149E268F001E95AA /* AutoMagicCoding-iOSTests copy.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "AutoMagicCoding-iOSTests copy.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
- FDB80DBC149E300F001E95AA /* NSObject+AutomagicCoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+AutomagicCoding.h"; sourceTree = "<group>"; };
- FDB80DBD149E300F001E95AA /* NSObject+AutomagicCoding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+AutomagicCoding.m"; sourceTree = "<group>"; };
+ FD8C3CE1149E366200FAA45D /* NSObject+AutoMagicCoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+AutoMagicCoding.h"; sourceTree = "<group>"; };
+ FD8C3CE2149E366200FAA45D /* NSObject+AutoMagicCoding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+AutoMagicCoding.m"; sourceTree = "<group>"; };
+ FDB80D16149E268F001E95AA /* AutoMagicCoding-iOSTests copy.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = "AutoMagicCoding-iOSTests copy.octest"; path = "AutoMagicCoding-iOSTests-NO_THROW.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
FDB80DBE149E300F001E95AA /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.md; sourceTree = "<group>"; };
FDB80DC1149E300F001E95AA /* AutoMagicCoding-iOS-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "AutoMagicCoding-iOS-Info.plist"; sourceTree = "<group>"; };
FDB80DC2149E300F001E95AA /* AutoMagicCoding-iOS-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "AutoMagicCoding-iOS-Prefix.pch"; sourceTree = "<group>"; };
@@ -163,7 +164,7 @@
isa = PBXGroup;
children = (
FDB80DBE149E300F001E95AA /* README.md */,
- FDB80DBB149E300F001E95AA /* AutoMagicCoding */,
+ FD8C3CE0149E366200FAA45D /* AutoMagicCoding */,
FDB80DE6149E3010001E95AA /* Tests */,
FDB80DBF149E300F001E95AA /* SupportingFiles */,
6D6D28BB1411608600B7EA19 /* Frameworks */,
@@ -192,11 +193,11 @@
name = Frameworks;
sourceTree = "<group>";
};
- FDB80DBB149E300F001E95AA /* AutoMagicCoding */ = {
+ FD8C3CE0149E366200FAA45D /* AutoMagicCoding */ = {
isa = PBXGroup;
children = (
- FDB80DBC149E300F001E95AA /* NSObject+AutomagicCoding.h */,
- FDB80DBD149E300F001E95AA /* NSObject+AutomagicCoding.m */,
+ FD8C3CE1149E366200FAA45D /* NSObject+AutoMagicCoding.h */,
+ FD8C3CE2149E366200FAA45D /* NSObject+AutoMagicCoding.m */,
);
path = AutoMagicCoding;
sourceTree = "<group>";
@@ -448,6 +449,7 @@
FDB80E0E149E3010001E95AA /* AutoMagicCoding_iOSAppDelegate_iPad.m in Sources */,
FDB80E14149E3010001E95AA /* AutoMagicCoding_iOSAppDelegate_iPhone.m in Sources */,
FDB80E1A149E3010001E95AA /* main.m in Sources */,
+ FD8C3CE3149E366200FAA45D /* NSObject+AutoMagicCoding.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -455,7 +457,6 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- FDB80E00149E3010001E95AA /* NSObject+AutomagicCoding.m in Sources */,
FDB80E3C149E3010001E95AA /* AMCCollectionsTest.m in Sources */,
FDB80E3F149E3010001E95AA /* AMCExceptionsTest.m in Sources */,
FDB80E42149E3010001E95AA /* AMCTest.m in Sources */,
@@ -467,6 +468,7 @@
FDB80E54149E3010001E95AA /* FooWithCustomCollection.m in Sources */,
FDB80E57149E3010001E95AA /* FooWithMutableCollections.m in Sources */,
FDB80E5A149E3010001E95AA /* FooWithSctructs.m in Sources */,
+ FD8C3CE4149E366200FAA45D /* NSObject+AutoMagicCoding.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -474,7 +476,6 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- FDB80E01149E3010001E95AA /* NSObject+AutomagicCoding.m in Sources */,
FDB80E3D149E3010001E95AA /* AMCCollectionsTest.m in Sources */,
FDB80E40149E3010001E95AA /* AMCExceptionsTest.m in Sources */,
FDB80E43149E3010001E95AA /* AMCTest.m in Sources */,
@@ -486,6 +487,7 @@
FDB80E55149E3010001E95AA /* FooWithCustomCollection.m in Sources */,
FDB80E58149E3010001E95AA /* FooWithMutableCollections.m in Sources */,
FDB80E5B149E3010001E95AA /* FooWithSctructs.m in Sources */,
+ FD8C3CE5149E366200FAA45D /* NSObject+AutoMagicCoding.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
4 AutomagicCoding/NSObject+AutomagicCoding.h
@@ -1,6 +1,6 @@
//
-// NSObject+AutomagicCoding.h
-// AutomagicCoding
+// NSObject+AutoMagicCoding.h
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
View
10 AutomagicCoding/NSObject+AutomagicCoding.m
@@ -1,6 +1,6 @@
//
-// NSObject+AutomagicCoding.m
-// AutomagicCoding
+// NSObject+AutoMagicCoding.m
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
@@ -23,7 +23,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#import "NSObject+AutomagicCoding.h"
+#import "NSObject+AutoMagicCoding.h"
#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
@@ -58,7 +58,7 @@
NSString *const AMCEncodeException = @"AMCEncodeException";
NSString *const AMCDecodeException = @"AMCDecodeException";
-@implementation NSObject (AutomagicCoding)
+@implementation NSObject (AutoMagicCoding)
+ (BOOL) AMCEnabled
{
@@ -205,7 +205,7 @@ - (NSArray *) AMCKeysForDictionaryRepresentation
- (AMCFieldType) AMCFieldTypeForValueWithKey: (NSString *) aKey
{
- // isAutomagicCodingEnabled == YES? Then it's custom object.
+ // isAutoMagicCodingEnabled == YES? Then it's custom object.
objc_property_t property = class_getProperty([self class], [aKey cStringUsingEncoding:NSUTF8StringEncoding]);
id class = AMCPropertyClass(property);
View
6 README.md
@@ -32,9 +32,9 @@ Known Issues
How To Use
==================
- 1. Drag'n'Drop NSObject+AutomagicCoding.h | m to your project. This will add AMC methods to all objects
+ 1. Drag'n'Drop NSObject+AutoMagicCoding.h | m to your project. This will add AMC methods to all objects
inherited from NSObject.
- 2. Import NSObject+AutomagicCoding.h where you need it.
+ 2. Import NSObject+AutoMagicCoding.h where you need it.
3. Reimplement +(BOOL)AMCEnabled and return YES to enable AMC for you class.
4. Reimplement -(id)initWithDictionaryRepresentation: and use [super initWithDictionaryRepresentation] inside of it. Ensure that all collections & other fields are created
after calling super initWithDictionaryRepresentation. Do your own init routines after.
@@ -52,7 +52,7 @@ AMCKeysForDictionaryRepresentation
to get & set fields of AMCEnabled objects.
Default implementation returns complete set of all object properties (both readonly & readwrite).
Reimplement this method choose manually, what properties should be encoded in NSDictionary.
- See tests in AutomagicCodingTests for more info & usage examples.
+ See tests in AutoMagicCodingTests for more info & usage examples.
Custom Struct Support
==================
View
2 SupportingFiles/SupportingFiles-Mac/AutomagicCoding-Prefix.pch
@@ -1,5 +1,5 @@
//
-// Prefix header for all source files of the 'AutomagicCoding' target in the 'AutomagicCoding' project
+// Prefix header for all source files of the 'AutoMagicCoding' target in the 'AutoMagicCoding' project
//
#ifdef __OBJC__
View
6 SupportingFiles/SupportingFiles-Mac/AutomagicCodingAppDelegate.h
@@ -1,6 +1,6 @@
//
-// AutomagicCodingAppDelegate.h
-// AutomagicCoding
+// AutoMagicCodingAppDelegate.h
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
@@ -8,7 +8,7 @@
#import <Cocoa/Cocoa.h>
-@interface AutomagicCodingAppDelegate : NSObject <NSApplicationDelegate> {
+@interface AutoMagicCodingAppDelegate : NSObject <NSApplicationDelegate> {
NSWindow *window;
}
View
8 SupportingFiles/SupportingFiles-Mac/AutomagicCodingAppDelegate.m
@@ -1,14 +1,14 @@
//
-// AutomagicCodingAppDelegate.m
-// AutomagicCoding
+// AutoMagicCodingAppDelegate.m
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
//
-#import "AutomagicCodingAppDelegate.h"
+#import "AutoMagicCodingAppDelegate.h"
-@implementation AutomagicCodingAppDelegate
+@implementation AutoMagicCodingAppDelegate
@synthesize window;
View
2 SupportingFiles/SupportingFiles-Mac/main.m
@@ -1,6 +1,6 @@
//
// main.m
-// AutomagicCoding
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
View
2 Tests/AMCCollectionsTest.h
@@ -1,6 +1,6 @@
//
// AMCCollectionsTest.h
-// AutomagicCoding
+// AutoMagicCoding
//
// 02.09.11.
// Copyright 2011 Stepan Generalov.
View
4 Tests/AMCCollectionsTest.m
@@ -1,6 +1,6 @@
//
// AMCCollectionsTest.m
-// AutomagicCoding
+// AutoMagicCoding
//
// 02.09.11.
// Copyright 2011 Stepan Generalov.
@@ -24,7 +24,7 @@
// THE SOFTWARE.
#import "AMCCollectionsTest.h"
-#import "NSObject+AutomagicCoding.h"
+#import "NSObject+AutoMagicCoding.h"
// Test objects.
#import "Foo.h"
View
2 Tests/AMCExceptionsTest.h
@@ -1,6 +1,6 @@
//
// AMCExceptionsTest.h
-// AutomagicCoding
+// AutoMagicCoding
//
// 03.12.11.
// Copyright 2011 Stepan Generalov.
View
4 Tests/AMCExceptionsTest.m
@@ -1,6 +1,6 @@
//
// AMCExceptionsTest.h
-// AutomagicCoding
+// AutoMagicCoding
//
// 03.12.11.
// Copyright 2011 Stepan Generalov.
@@ -24,7 +24,7 @@
// THE SOFTWARE.
#import "AMCExceptionsTest.h"
-#import "NSObject+AutomagicCoding.h"
+#import "NSObject+AutoMagicCoding.h"
#import "Bar.h"
#import "Foo.h"
View
2 Tests/AMCTest.h
@@ -1,6 +1,6 @@
//
// AMCTest.h
-// AutomagicCoding
+// AutoMagicCoding
//
// 02.09.11.
// Copyright 2011 Stepan Generalov.
View
4 Tests/AMCTest.m
@@ -1,6 +1,6 @@
//
// AMCTest.m
-// AutomagicCoding
+// AutoMagicCoding
//
// 02.09.11.
// Copyright 2011 Stepan Generalov.
@@ -24,7 +24,7 @@
// THE SOFTWARE.
#import "AMCTest.h"
-#import "NSObject+AutomagicCoding.h"
+#import "NSObject+AutoMagicCoding.h"
@implementation AMCTest
View
2 Tests/AMCTestSimple.h
@@ -1,6 +1,6 @@
//
// AMCTestSimple.h
-// AutomagicCodingTests
+// AutoMagicCodingTests
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
View
4 Tests/AMCTestSimple.m
@@ -1,6 +1,6 @@
//
// AMCTestSimple.m
-// AutomagicCodingTests
+// AutoMagicCodingTests
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
@@ -26,7 +26,7 @@
#import "AMCTestSimple.h"
#import "Foo.h"
#import "Bar.h"
-#import "NSObject+AutomagicCoding.h"
+#import "NSObject+AutoMagicCoding.h"
#import "FooWithSctructs.h"
#ifdef __MAC_OS_X_VERSION_MAX_ALLOWED
View
2 Tests/ObjectsForTests/Bar.h
@@ -1,6 +1,6 @@
//
// Bar.h
-// AutomagicCoding
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
View
2 Tests/ObjectsForTests/Bar.m
@@ -1,6 +1,6 @@
//
// Bar.m
-// AutomagicCoding
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
View
4 Tests/ObjectsForTests/Foo.h
@@ -1,6 +1,6 @@
//
// Foo.h
-// AutomagicCoding
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
@@ -25,7 +25,7 @@
#import <Foundation/Foundation.h>
#import "Bar.h"
-#import "NSObject+AutomagicCoding.h"
+#import "NSObject+AutoMagicCoding.h"
@interface Foo : NSObject
{
View
4 Tests/ObjectsForTests/Foo.m
@@ -1,6 +1,6 @@
//
// Foo.m
-// AutomagicCoding
+// AutoMagicCoding
//
// 31.08.11.
// Copyright 2011 Stepan Generalov.
@@ -24,7 +24,7 @@
// THE SOFTWARE.
#import "Foo.h"
-#import "NSObject+AutomagicCoding.h"
+#import "NSObject+AutoMagicCoding.h"
@implementation Foo
View
2 Tests/ObjectsForTests/FooWithCollections.h
@@ -1,6 +1,6 @@
//
// FooWithCollections.h
-// AutomagicCoding
+// AutoMagicCoding
//
// 02.09.11.
// Copyright 2011 Stepan Generalov.
View
2 Tests/ObjectsForTests/FooWithCollections.m
@@ -1,6 +1,6 @@
//
// FooWithCollections.m
-// AutomagicCoding
+// AutoMagicCoding
//
// 02.09.11.
// Copyright 2011 Stepan Generalov.
View
2 Tests/ObjectsForTests/FooWithMutableCollections.h
@@ -1,6 +1,6 @@
//
// FooWithMutableCollections.h
-// AutomagicCoding
+// AutoMagicCoding
//
// 02.09.11.
// Copyright 2011 Stepan Generalov.
View
2 Tests/ObjectsForTests/FooWithMutableCollections.m
@@ -1,6 +1,6 @@
//
// FooWithMutableCollections.m
-// AutomagicCoding
+// AutoMagicCoding
//
// 02.09.11.
// Copyright 2011 Stepan Generalov.
View
2 Tests/ObjectsForTests/FooWithSctructs.m
@@ -24,7 +24,7 @@
// THE SOFTWARE.
#import "FooWithSctructs.h"
-#import "NSObject+AutomagicCoding.h"
+#import "NSObject+AutoMagicCoding.h"
NSString *NSStringFromCustomStruct(CustomStruct custom)
{

0 comments on commit ccd385b

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