Skip to content
This repository

machine .h files should forward declare classes when attributeValueClassName is used #11

seanm opened this Issue January 16, 2010 · 6 comments

2 participants

Sean Jonathan 'Wolf' Rentzsch

We've been using an old mogenerator and just tried 1.16. I notice that it's still not forward declaring classes that are specified for transformable-type attributes using attributeValueClassName.

In our custom templates, we added this to solve the problem:

<$foreach Attribute noninheritedAttributes do$><$if Attribute.hasTransformableAttributeType$>@class <$Attribute.objectAttributeType$>;<$endif$>

Could it be added?


Actually, just noticed that with 1.16 using my custom template fails with this message:

Caught: NSUnknownKeyException: [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key hasTransformableAttributeType.

Jonathan 'Wolf' Rentzsch

Figure out any solution to this?

seanm commented July 20, 2010

My colleague paugus fixed this bug in his branch. Would be great if you could review and merge.

Jonathan 'Wolf' Rentzsch

Which commit? This one? That diff is pretty confusing.

seanm commented July 21, 2010

Whoa, that one is confusing... perhaps due to our being new to git (ugh, it's UI is awful).

I've created my own branch, and manually merged his changes. This looks better:

Jonathan 'Wolf' Rentzsch

Thanks! Closing.

This issue was closed.
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.