Skip to content

Commit 0af4c28

Browse files
committed
added SHRealmObject, a subclass of RLMObject from Realm
1 parent 59f85e3 commit 0af4c28

File tree

16 files changed

+872
-124
lines changed

16 files changed

+872
-124
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
DerivedData
3-
Build
3+
Build
4+
Pods

Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
platform :ios, '7.0'
2+
3+
pod 'Realm'

Podfile.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
PODS:
2+
- Realm (0.91.1):
3+
- Realm/Headers (= 0.91.1)
4+
- Realm/Headers (0.91.1)
5+
6+
DEPENDENCIES:
7+
- Realm
8+
9+
SPEC CHECKSUMS:
10+
Realm: b9c1fd9defa26aa7276ce938a8df52ec81f24528
11+
12+
COCOAPODS: 0.36.3

SHModelObject.xcodeproj/project.pbxproj

Lines changed: 67 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
F244007518DACD6B0078B6B0 /* SHModelObject.m in Sources */ = {isa = PBXBuildFile; fileRef = F244006F18DACD6B0078B6B0 /* SHModelObject.m */; };
10+
F23ED34A1ACECF1100DECB41 /* SHModelObject.m in Sources */ = {isa = PBXBuildFile; fileRef = F23ED3491ACECF1100DECB41 /* SHModelObject.m */; };
11+
F244007518DACD6B0078B6B0 /* SHRealmObject.m in Sources */ = {isa = PBXBuildFile; fileRef = F244006F18DACD6B0078B6B0 /* SHRealmObject.m */; };
1112
F244007618DACD6B0078B6B0 /* SHAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F244007118DACD6B0078B6B0 /* SHAppDelegate.m */; };
1213
F244007718DACD6B0078B6B0 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F244007218DACD6B0078B6B0 /* Images.xcassets */; };
1314
F2B4093118BA16F400611B29 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F2B4093018BA16F400611B29 /* Foundation.framework */; };
@@ -22,6 +23,7 @@
2223
F2B4095618BA16F500611B29 /* SHModalObjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F2B4095518BA16F500611B29 /* SHModalObjectTests.m */; };
2324
F2FA97791AB40312002B972D /* SHAnotherModel.m in Sources */ = {isa = PBXBuildFile; fileRef = F2FA97781AB40312002B972D /* SHAnotherModel.m */; };
2425
F2FA977C1AB40377002B972D /* SHTestModal.m in Sources */ = {isa = PBXBuildFile; fileRef = F2FA977B1AB40377002B972D /* SHTestModal.m */; };
26+
FE33A26DADB42E2A9B70AD3A /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F7A64675AD7CA1B19A20D9B /* libPods.a */; };
2527
/* End PBXBuildFile section */
2628

2729
/* Begin PBXContainerItemProxy section */
@@ -35,8 +37,14 @@
3537
/* End PBXContainerItemProxy section */
3638

3739
/* Begin PBXFileReference section */
38-
F244006E18DACD6B0078B6B0 /* SHModelObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SHModelObject.h; sourceTree = "<group>"; };
39-
F244006F18DACD6B0078B6B0 /* SHModelObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SHModelObject.m; sourceTree = "<group>"; };
40+
554FB54EEF06419DD0589430 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
41+
5F7A64675AD7CA1B19A20D9B /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
42+
BF6124F63E5B13E3367BBE50 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
43+
F23ED3481ACECF1100DECB41 /* SHModelObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SHModelObject.h; sourceTree = "<group>"; };
44+
F23ED3491ACECF1100DECB41 /* SHModelObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SHModelObject.m; sourceTree = "<group>"; };
45+
F23ED34B1ACF64F400DECB41 /* SHConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SHConstants.h; sourceTree = "<group>"; };
46+
F244006E18DACD6B0078B6B0 /* SHRealmObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SHRealmObject.h; sourceTree = "<group>"; };
47+
F244006F18DACD6B0078B6B0 /* SHRealmObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SHRealmObject.m; sourceTree = "<group>"; };
4048
F244007018DACD6B0078B6B0 /* SHModelSerialization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SHModelSerialization.h; sourceTree = "<group>"; };
4149
F244007118DACD6B0078B6B0 /* SHAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SHAppDelegate.m; sourceTree = "<group>"; };
4250
F244007218DACD6B0078B6B0 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
@@ -68,6 +76,7 @@
6876
F2B4093318BA16F400611B29 /* CoreGraphics.framework in Frameworks */,
6977
F2B4093518BA16F400611B29 /* UIKit.framework in Frameworks */,
7078
F2B4093118BA16F400611B29 /* Foundation.framework in Frameworks */,
79+
FE33A26DADB42E2A9B70AD3A /* libPods.a in Frameworks */,
7180
);
7281
runOnlyForDeploymentPostprocessing = 0;
7382
};
@@ -84,12 +93,24 @@
8493
/* End PBXFrameworksBuildPhase section */
8594

8695
/* Begin PBXGroup section */
96+
69326B473AE325959E36B0F9 /* Pods */ = {
97+
isa = PBXGroup;
98+
children = (
99+
554FB54EEF06419DD0589430 /* Pods.debug.xcconfig */,
100+
BF6124F63E5B13E3367BBE50 /* Pods.release.xcconfig */,
101+
);
102+
name = Pods;
103+
sourceTree = "<group>";
104+
};
87105
F244006D18DACD6B0078B6B0 /* SHModelObject */ = {
88106
isa = PBXGroup;
89107
children = (
90-
F244006E18DACD6B0078B6B0 /* SHModelObject.h */,
91-
F244006F18DACD6B0078B6B0 /* SHModelObject.m */,
108+
F23ED3481ACECF1100DECB41 /* SHModelObject.h */,
109+
F23ED3491ACECF1100DECB41 /* SHModelObject.m */,
110+
F244006E18DACD6B0078B6B0 /* SHRealmObject.h */,
111+
F244006F18DACD6B0078B6B0 /* SHRealmObject.m */,
92112
F244007018DACD6B0078B6B0 /* SHModelSerialization.h */,
113+
F23ED34B1ACF64F400DECB41 /* SHConstants.h */,
93114
);
94115
path = SHModelObject;
95116
sourceTree = "<group>";
@@ -101,6 +122,7 @@
101122
F2B4094F18BA16F500611B29 /* SHModelObjectTests */,
102123
F2B4092F18BA16F400611B29 /* Frameworks */,
103124
F2B4092E18BA16F400611B29 /* Products */,
125+
69326B473AE325959E36B0F9 /* Pods */,
104126
);
105127
sourceTree = "<group>";
106128
};
@@ -120,6 +142,7 @@
120142
F2B4093218BA16F400611B29 /* CoreGraphics.framework */,
121143
F2B4093418BA16F400611B29 /* UIKit.framework */,
122144
F2B4094918BA16F500611B29 /* XCTest.framework */,
145+
5F7A64675AD7CA1B19A20D9B /* libPods.a */,
123146
);
124147
name = Frameworks;
125148
sourceTree = "<group>";
@@ -176,9 +199,11 @@
176199
isa = PBXNativeTarget;
177200
buildConfigurationList = F2B4095918BA16F500611B29 /* Build configuration list for PBXNativeTarget "SHModelObject" */;
178201
buildPhases = (
202+
90F5EDA36F268FAEB41BE27A /* Check Pods Manifest.lock */,
179203
F2B4092918BA16F400611B29 /* Sources */,
180204
F2B4092A18BA16F400611B29 /* Frameworks */,
181205
F2B4092B18BA16F400611B29 /* Resources */,
206+
34EDAE56034AE01B459D91EA /* Copy Pods Resources */,
182207
);
183208
buildRules = (
184209
);
@@ -260,14 +285,48 @@
260285
};
261286
/* End PBXResourcesBuildPhase section */
262287

288+
/* Begin PBXShellScriptBuildPhase section */
289+
34EDAE56034AE01B459D91EA /* Copy Pods Resources */ = {
290+
isa = PBXShellScriptBuildPhase;
291+
buildActionMask = 2147483647;
292+
files = (
293+
);
294+
inputPaths = (
295+
);
296+
name = "Copy Pods Resources";
297+
outputPaths = (
298+
);
299+
runOnlyForDeploymentPostprocessing = 0;
300+
shellPath = /bin/sh;
301+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
302+
showEnvVarsInLog = 0;
303+
};
304+
90F5EDA36F268FAEB41BE27A /* Check Pods Manifest.lock */ = {
305+
isa = PBXShellScriptBuildPhase;
306+
buildActionMask = 2147483647;
307+
files = (
308+
);
309+
inputPaths = (
310+
);
311+
name = "Check Pods Manifest.lock";
312+
outputPaths = (
313+
);
314+
runOnlyForDeploymentPostprocessing = 0;
315+
shellPath = /bin/sh;
316+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
317+
showEnvVarsInLog = 0;
318+
};
319+
/* End PBXShellScriptBuildPhase section */
320+
263321
/* Begin PBXSourcesBuildPhase section */
264322
F2B4092918BA16F400611B29 /* Sources */ = {
265323
isa = PBXSourcesBuildPhase;
266324
buildActionMask = 2147483647;
267325
files = (
268326
F2FA97791AB40312002B972D /* SHAnotherModel.m in Sources */,
327+
F23ED34A1ACECF1100DECB41 /* SHModelObject.m in Sources */,
269328
F2B4093D18BA16F400611B29 /* main.m in Sources */,
270-
F244007518DACD6B0078B6B0 /* SHModelObject.m in Sources */,
329+
F244007518DACD6B0078B6B0 /* SHRealmObject.m in Sources */,
271330
F244007618DACD6B0078B6B0 /* SHAppDelegate.m in Sources */,
272331
F2FA977C1AB40377002B972D /* SHTestModal.m in Sources */,
273332
);
@@ -387,6 +446,7 @@
387446
};
388447
F2B4095A18BA16F500611B29 /* Debug */ = {
389448
isa = XCBuildConfiguration;
449+
baseConfigurationReference = 554FB54EEF06419DD0589430 /* Pods.debug.xcconfig */;
390450
buildSettings = {
391451
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
392452
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -400,6 +460,7 @@
400460
};
401461
F2B4095B18BA16F500611B29 /* Release */ = {
402462
isa = XCBuildConfiguration;
463+
baseConfigurationReference = BF6124F63E5B13E3367BBE50 /* Pods.release.xcconfig */;
403464
buildSettings = {
404465
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
405466
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;

SHModelObject.xcodeproj/xcuserdata/shanulhaq.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,4 @@
22
<Bucket
33
type = "1"
44
version = "2.0">
5-
<Breakpoints>
6-
<BreakpointProxy
7-
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8-
<BreakpointContent
9-
shouldBeEnabled = "Yes"
10-
ignoreCount = "0"
11-
continueAfterRunningActions = "No"
12-
filePath = "SHModelObject/SHAppDelegate.m"
13-
timestampString = "448026024.247668"
14-
startingColumnNumber = "9223372036854775807"
15-
endingColumnNumber = "9223372036854775807"
16-
startingLineNumber = "79"
17-
endingLineNumber = "79"
18-
landmarkName = "-application:didFinishLaunchingWithOptions:"
19-
landmarkType = "5">
20-
</BreakpointContent>
21-
</BreakpointProxy>
22-
</Breakpoints>
235
</Bucket>

SHModelObject.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
6+
<false/>
7+
<key>IDESourceControlProjectIdentifier</key>
8+
<string>1D5875E1-22CF-45BC-B76F-5E8523155564</string>
9+
<key>IDESourceControlProjectName</key>
10+
<string>SHModelObject</string>
11+
<key>IDESourceControlProjectOriginsDictionary</key>
12+
<dict>
13+
<key>B5D04170A948972EE1EFA3B27A34E674C9EF57CA</key>
14+
<string>github.com:grevolution/SHModelObject.git</string>
15+
</dict>
16+
<key>IDESourceControlProjectPath</key>
17+
<string>SHModelObject.xcworkspace</string>
18+
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
19+
<dict>
20+
<key>B5D04170A948972EE1EFA3B27A34E674C9EF57CA</key>
21+
<string>..</string>
22+
</dict>
23+
<key>IDESourceControlProjectURL</key>
24+
<string>github.com:grevolution/SHModelObject.git</string>
25+
<key>IDESourceControlProjectVersion</key>
26+
<integer>111</integer>
27+
<key>IDESourceControlProjectWCCIdentifier</key>
28+
<string>B5D04170A948972EE1EFA3B27A34E674C9EF57CA</string>
29+
<key>IDESourceControlProjectWCConfigurations</key>
30+
<array>
31+
<dict>
32+
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
33+
<string>public.vcs.git</string>
34+
<key>IDESourceControlWCCIdentifierKey</key>
35+
<string>B5D04170A948972EE1EFA3B27A34E674C9EF57CA</string>
36+
<key>IDESourceControlWCCName</key>
37+
<string>SHModelObject</string>
38+
</dict>
39+
</array>
40+
</dict>
41+
</plist>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
6+
<true/>
7+
<key>SnapshotAutomaticallyBeforeSignificantChanges</key>
8+
<false/>
9+
</dict>
10+
</plist>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "0"
4+
version = "2.0">
5+
</Bucket>

0 commit comments

Comments
 (0)