Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks with transformable properties #89

Closed
danielctull opened this issue Jan 26, 2012 · 11 comments
Closed

Breaks with transformable properties #89

danielctull opened this issue Jan 26, 2012 · 11 comments
Milestone

Comments

@danielctull
Copy link
Contributor

At the moment transformable properties are being generated like as so @property (nonatomic, strong) idcolor; with no space between the type and identifier.

Two solutions to this seem to be:

  • Change -objectAttributeType to return @"id " instead of @"id"
  • Add a check in the template <$if Attribute.hasTransformableAttributeType$> <$endif$> to add the space

I'm not sure which it should be, I believe this is part of changes @robrix made, so I'm not sure what side affects changing the return from that method may cause.

@danielctull
Copy link
Contributor Author

Either of those commits resolve this issue, I'm currently running with changing the template for safety. :)

@rentzsch
Copy link
Owner

Right you are, I intend to make transformable property class output smarter as detailed in #86 (comment)

@rentzsch
Copy link
Owner

Hmm, github can't seem to reopen issues atm, so I can't reopen #86, so your issue will serve as a handy placeholder for the v1.25 milestone :)

@smic
Copy link
Contributor

smic commented Feb 22, 2012

This issue isn't fixed in 1.25, correct? As well as #86 ?

@rentzsch
Copy link
Owner

It's fixed, but I want to make it smarter.

@apparentsoft
Copy link

@rentzsch, I am still hit by the missing space on transformable attributes in 1.25.
At least with --template-var arc=true set.

@Soryu
Copy link

Soryu commented Mar 5, 2012

Same here, not using arc. Followed http://raptureinvenice.com/getting-started-with-mogenerator/

@rentzsch
Copy link
Owner

rentzsch commented Mar 6, 2012

Are you sure you're using the latest templates? Please check against https://github.com/rentzsch/mogenerator/tree/master/templates

Apparently if you upgraded via homebrew you don't get upgraded templates by default.

@apparentsoft
Copy link

No, Wolf, I just downloaded the 1.25 from here and installed it.
From what I see, the template in master (the machine.h) doesn't have the extra space for transformables.

For now, I fixed my template manually, following changes in Daniel's following commit: https://github.com/danielctull/mogenerator/commit/c51c7442e015d89e156ddcea2a7420e772515221

In fact, this very issue has 2 commits from Daniel to address this issue but looks like you didn't merge his proposed changes.

@rentzsch
Copy link
Owner

rentzsch commented Mar 6, 2012

Ah, I misunderstood the extent of the problem. Somehow I missed the broken codegen in test mule's ParentMO.myTransformableSansClassName. I thought this issue was more of a SHOULD, but now I understand it's a high-priority MUST.

@rentzsch
Copy link
Owner

Fixed in 1.26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants