Skip to content

Transformable relationships generates with missing space #97

Closed
AlbertTong opened this Issue Mar 19, 2012 · 5 comments

5 participants

@AlbertTong

Noticed the missing space after "id":

http://cl.ly/3a3W3z2M1N2Q0f3G2110

Should be "id extraFields" instead of "idextraFields". This happened to several other relationships of Transformable type.

Running Xcode 4.3.1 with 5.1 SDK and 1.25 version of mogenerator. If this can't be resolved, please let me know how to uninstall 1.25 so I can install 1.24 again. Thanks!

@postmechanical

NSObject *something to idsomething

@ryanmaxwell

having this issue too with a Transformable UIImage attribute

@RobotK RobotK added a commit to RobotK/mogenerator that referenced this issue Mar 27, 2012
@RobotK RobotK [FIX] Missing space in transformable relationships - #97. e98a686
@RobotK
RobotK commented Mar 27, 2012

I fixed this by adding a space to my machine.h.motemplate file. (It's found in "~/Library/Application Support/mogenerator" unless you're specifying a different location.)

Change line 35 from

@property (nonatomic, strong) <$Attribute.objectAttributeType$><$Attribute.name$>;

to

@property (nonatomic, strong) <$Attribute.objectAttributeType$> <$Attribute.name$>;

And line 37 from

@property (nonatomic, retain) <$Attribute.objectAttributeType$><$Attribute.name$>;

to

@property (nonatomic, retain) <$Attribute.objectAttributeType$> <$Attribute.name$>;

Note that you can modify these files without having to upgrade (or downgrade) your mogenerator install.

@rafifyalda

@RobotK Thanks! - just updated to 1.2.5 and came searching here after my colleague mentioned it was something he had to manually fix

@AlbertTong

@RobotK Thanks. I implemented those changes on my templates and worked like a charm. Closing the issue.

@AlbertTong AlbertTong closed this Mar 30, 2012
@ddrccw ddrccw pushed a commit to ddrccw/mogenerator that referenced this issue Jan 20, 2014
@RobotK RobotK [FIX] Missing space in transformable relationships - #97. 025ccfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.