Skip to content
This repository

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

Closed
seanm opened this Issue January 16, 2010 · 6 comments

2 participants

Sean Jonathan 'Wolf' Rentzsch
Sean

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?

Sean

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
Owner

Figure out any solution to this?

Sean
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
Owner

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

Sean
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:
http://github.com/seanm/mogenerator/commit/fbb156268d2a6fd5668fe43dc4c815ddeca4b1d8

Jonathan 'Wolf' Rentzsch
Owner

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.