Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes `colorTestAttribute`'s attribute value class on `SingleEntityWithNoRelationships` #679

Closed
wants to merge 1 commit into from

2 participants

@JRG-Developer

Fixes colorTestAttribute's attribute value class on SingleEntityWithNoRelationships so Mogenerator will correctly generate this entity when testing.

All tests pass after change.

Joshua Greene Fixes `colorTestAttribute` attribute value class so Mogenerator will …
…correctly create entities.

All tests pass.
cbaf3b9
@tonyarnold
Owner

This is working with another fix now. Thanks for the PR!

@tonyarnold tonyarnold closed this
@JRG-Developer JRG-Developer deleted the JRG-Developer:Fix_Single_Entity_No_Relations_Color_Attribute branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 18, 2014
  1. Fixes `colorTestAttribute` attribute value class so Mogenerator will …

    Joshua Greene authored
    …correctly create entities.
    
    All tests pass.
This page is out of date. Refresh to see the latest.
View
2  Tests/Fixtures/TestModel.xcdatamodeld/TestModel.xcdatamodel/contents
@@ -70,7 +70,7 @@
<attribute name="booleanTestAttribute" optional="YES" attributeType="Boolean" syncable="YES"/>
<attribute name="colorTestAttribute" optional="YES" attributeType="Transformable" syncable="YES">
<userInfo>
- <entry key="attributeValueClassName" value="*Color"/>
+ <entry key="attributeValueClassName" value="UIColor"/>
</userInfo>
</attribute>
<attribute name="dateTestAttribute" optional="YES" attributeType="Date" syncable="YES"/>
View
8 Tests/Fixtures/TestModel/_SingleEntityWithNoRelationships.h
@@ -35,7 +35,7 @@ extern const struct SingleEntityWithNoRelationshipsAttributes {
-@class NSObject;
+@class UIColor;
@@ -92,7 +92,7 @@ extern const struct SingleEntityWithNoRelationshipsAttributes {
-@property (nonatomic, strong) id colorTestAttribute;
+@property (nonatomic, strong) UIColor* colorTestAttribute;
@@ -285,8 +285,8 @@ extern const struct SingleEntityWithNoRelationshipsAttributes {
-- (id)primitiveColorTestAttribute;
-- (void)setPrimitiveColorTestAttribute:(id)value;
+- (UIColor*)primitiveColorTestAttribute;
+- (void)setPrimitiveColorTestAttribute:(UIColor*)value;
Something went wrong with that request. Please try again.