Permalink
Browse files

core data entity additions

  • Loading branch information...
1 parent 4fd42af commit 57528c5e2b94f18f4beedad54dd17b22776bbcbf @cozmoboy cozmoboy committed Mar 19, 2013
View
@@ -2,7 +2,7 @@
// Business.h
// MappingMashupApp
//
-// Created by StopBitingMe on 3/17/13.
+// Created by David Johnston on 3/19/13.
// Copyright (c) 2013 The Peanut Gallery. All rights reserved.
//
@@ -13,10 +13,13 @@
@interface Business : NSManagedObject
-@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSNumber * latitude;
@property (nonatomic, retain) NSNumber * longitude;
+@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSString * phone;
+@property (nonatomic, retain) NSNumber * isBookmarked;
+@property (nonatomic, retain) NSDate * viewDate;
+@property (nonatomic, retain) NSString * yelpURLString;
@property (nonatomic, retain) NSSet *photo;
@end
View
@@ -2,7 +2,7 @@
// Business.m
// MappingMashupApp
//
-// Created by StopBitingMe on 3/17/13.
+// Created by David Johnston on 3/19/13.
// Copyright (c) 2013 The Peanut Gallery. All rights reserved.
//
@@ -12,10 +12,13 @@
@implementation Business
-@dynamic name;
@dynamic latitude;
@dynamic longitude;
+@dynamic name;
@dynamic phone;
+@dynamic isBookmarked;
+@dynamic viewDate;
+@dynamic yelpURLString;
@dynamic photo;
@end
@@ -7,6 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
+ 6B2D7B2A16F8FE2B00E6D3A5 /* Photo.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B2D7B2916F8FE2B00E6D3A5 /* Photo.m */; };
+ 6B2D7B2D16F8FE2B00E6D3A5 /* Business.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B2D7B2C16F8FE2B00E6D3A5 /* Business.m */; };
830729D416F766D6000F0037 /* Model.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 830729D216F766D6000F0037 /* Model.xcdatamodeld */; };
8335571616F6D27600DB17D5 /* YelpWebPageBrowser.m in Sources */ = {isa = PBXBuildFile; fileRef = 8335571516F6D27600DB17D5 /* YelpWebPageBrowser.m */; };
8335571916F754C800DB17D5 /* xmark.png in Resources */ = {isa = PBXBuildFile; fileRef = 8335571816F754C800DB17D5 /* xmark.png */; };
@@ -34,8 +36,6 @@
8F372B5B16F2678A00302B80 /* Annotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 8F372B5A16F2678A00302B80 /* Annotation.m */; };
B40B477516F68FC1006BD4CE /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B40B477416F68FC1006BD4CE /* CoreData.framework */; };
B425500916F6B158005CCC9E /* Venue.m in Sources */ = {isa = PBXBuildFile; fileRef = B425500816F6B158005CCC9E /* Venue.m */; };
- B425500C16F6B1C2005CCC9E /* Business.m in Sources */ = {isa = PBXBuildFile; fileRef = B425500B16F6B1C2005CCC9E /* Business.m */; };
- B425500F16F6B1C2005CCC9E /* Photo.m in Sources */ = {isa = PBXBuildFile; fileRef = B425500E16F6B1C2005CCC9E /* Photo.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -63,6 +63,10 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
+ 6B2D7B2816F8FE2B00E6D3A5 /* Photo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Photo.h; path = ../Photo.h; sourceTree = "<group>"; };
+ 6B2D7B2916F8FE2B00E6D3A5 /* Photo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Photo.m; path = ../Photo.m; sourceTree = "<group>"; };
+ 6B2D7B2B16F8FE2B00E6D3A5 /* Business.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Business.h; path = ../Business.h; sourceTree = "<group>"; };
+ 6B2D7B2C16F8FE2B00E6D3A5 /* Business.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Business.m; path = ../Business.m; sourceTree = "<group>"; };
830729D316F766D6000F0037 /* Model.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Model.xcdatamodel; sourceTree = "<group>"; };
8335571416F6D27600DB17D5 /* YelpWebPageBrowser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YelpWebPageBrowser.h; sourceTree = "<group>"; };
8335571516F6D27600DB17D5 /* YelpWebPageBrowser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YelpWebPageBrowser.m; sourceTree = "<group>"; };
@@ -104,10 +108,6 @@
B40B477416F68FC1006BD4CE /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
B425500716F6B158005CCC9E /* Venue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Venue.h; path = ../Venue.h; sourceTree = "<group>"; };
B425500816F6B158005CCC9E /* Venue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Venue.m; path = ../Venue.m; sourceTree = "<group>"; };
- B425500A16F6B1C2005CCC9E /* Business.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Business.h; path = ../Business.h; sourceTree = "<group>"; };
- B425500B16F6B1C2005CCC9E /* Business.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Business.m; path = ../Business.m; sourceTree = "<group>"; };
- B425500D16F6B1C2005CCC9E /* Photo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Photo.h; path = ../Photo.h; sourceTree = "<group>"; };
- B425500E16F6B1C2005CCC9E /* Photo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Photo.m; path = ../Photo.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -260,10 +260,10 @@
B425501016F6B1D1005CCC9E /* Managed */ = {
isa = PBXGroup;
children = (
- B425500D16F6B1C2005CCC9E /* Photo.h */,
- B425500E16F6B1C2005CCC9E /* Photo.m */,
- B425500A16F6B1C2005CCC9E /* Business.h */,
- B425500B16F6B1C2005CCC9E /* Business.m */,
+ 6B2D7B2B16F8FE2B00E6D3A5 /* Business.h */,
+ 6B2D7B2C16F8FE2B00E6D3A5 /* Business.m */,
+ 6B2D7B2816F8FE2B00E6D3A5 /* Photo.h */,
+ 6B2D7B2916F8FE2B00E6D3A5 /* Photo.m */,
);
name = Managed;
sourceTree = "<group>";
@@ -369,11 +369,11 @@
8F372B5816F2672100302B80 /* ResultsManager.m in Sources */,
8F372B5B16F2678A00302B80 /* Annotation.m in Sources */,
B425500916F6B158005CCC9E /* Venue.m in Sources */,
- B425500C16F6B1C2005CCC9E /* Business.m in Sources */,
- B425500F16F6B1C2005CCC9E /* Photo.m in Sources */,
8335571616F6D27600DB17D5 /* YelpWebPageBrowser.m in Sources */,
830729D416F766D6000F0037 /* Model.xcdatamodeld in Sources */,
83FE37E216F76CD6000C9935 /* FlickrMapViewController.m in Sources */,
+ 6B2D7B2A16F8FE2B00E6D3A5 /* Photo.m in Sources */,
+ 6B2D7B2D16F8FE2B00E6D3A5 /* Business.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -128,26 +128,6 @@
<resources>
<image name="xmark.png" width="64" height="64"/>
</resources>
- <classes>
- <class className="FlickrMapViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/FlickrMapViewController.h"/>
- <relationships>
- <relationship kind="outlet" name="myMapView" candidateClass="MKMapView"/>
- </relationships>
- </class>
- <class className="YelpMapViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/YelpMapViewController.h"/>
- <relationships>
- <relationship kind="outlet" name="myMapView" candidateClass="MKMapView"/>
- </relationships>
- </class>
- <class className="YelpWebPageBrowser" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/YelpWebPageBrowser.h"/>
- <relationships>
- <relationship kind="outlet" name="webView" candidateClass="UIWebView"/>
- </relationships>
- </class>
- </classes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
@@ -1,21 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="2061" systemVersion="12D78" minimumToolsVersion="Xcode 4.3" macOSVersion="Automatic" iOSVersion="Automatic">
+<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="2057" systemVersion="12C60" minimumToolsVersion="Xcode 4.3" macOSVersion="Automatic" iOSVersion="Automatic">
<entity name="Business" representedClassName="Business" syncable="YES">
+ <attribute name="isBookmarked" optional="YES" attributeType="Boolean" syncable="YES"/>
<attribute name="latitude" optional="YES" attributeType="Float" defaultValueString="0.0" syncable="YES"/>
<attribute name="longitude" optional="YES" attributeType="Float" defaultValueString="0.0" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="phone" optional="YES" attributeType="String" syncable="YES"/>
+ <attribute name="viewDate" optional="YES" attributeType="Date" syncable="YES"/>
+ <attribute name="yelpURLString" optional="YES" attributeType="String" syncable="YES"/>
<relationship name="photo" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Photo" inverseName="business" inverseEntity="Photo" syncable="YES"/>
</entity>
<entity name="Photo" representedClassName="Photo" syncable="YES">
- <attribute name="fullSizedURL" optional="YES" attributeType="String" syncable="YES"/>
+ <attribute name="fullSizedURLString" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="latitude" optional="YES" attributeType="Float" defaultValueString="0.0" syncable="YES"/>
<attribute name="longitude" optional="YES" attributeType="Float" defaultValueString="0.0" syncable="YES"/>
- <attribute name="thumbnailURL" optional="YES" attributeType="String" syncable="YES"/>
+ <attribute name="thumbnailURLString" optional="YES" attributeType="String" syncable="YES"/>
<relationship name="business" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Business" inverseName="photo" inverseEntity="Business" syncable="YES"/>
</entity>
<elements>
- <element name="Business" positionX="855" positionY="297" width="128" height="118"/>
+ <element name="Business" positionX="855" positionY="297" width="128" height="163"/>
<element name="Photo" positionX="468" positionY="447" width="128" height="120"/>
</elements>
</model>
View
@@ -2,7 +2,7 @@
// Photo.h
// MappingMashupApp
//
-// Created by StopBitingMe on 3/17/13.
+// Created by David Johnston on 3/19/13.
// Copyright (c) 2013 The Peanut Gallery. All rights reserved.
//
@@ -13,10 +13,10 @@
@interface Photo : NSManagedObject
-@property (nonatomic, retain) NSString * fullSizedURL;
+@property (nonatomic, retain) NSString * fullSizedURLString;
@property (nonatomic, retain) NSNumber * latitude;
@property (nonatomic, retain) NSNumber * longitude;
-@property (nonatomic, retain) NSString * thumbnailURL;
+@property (nonatomic, retain) NSString * thumbnailURLString;
@property (nonatomic, retain) Business *business;
@end
View
@@ -2,7 +2,7 @@
// Photo.m
// MappingMashupApp
//
-// Created by StopBitingMe on 3/17/13.
+// Created by David Johnston on 3/19/13.
// Copyright (c) 2013 The Peanut Gallery. All rights reserved.
//
@@ -12,10 +12,10 @@
@implementation Photo
-@dynamic fullSizedURL;
+@dynamic fullSizedURLString;
@dynamic latitude;
@dynamic longitude;
-@dynamic thumbnailURL;
+@dynamic thumbnailURLString;
@dynamic business;
@end

0 comments on commit 57528c5

Please sign in to comment.