QC Auto Class Stubbing or Code Generation of QC Context

i have always wanted code stubbing or code generation from a qc file. not sure if this is a duplicate request or not, or how feasible a hack like that would be but to be able stub out or auto class generate a qc file much in the same respects as you would do with UML some really complex systems could be made very fast especially if implementations where generated as well as get set properties kind of like modeling with core data i guess but in qc related context. i'm sure there would be some privacy issues and this would have to be a hack but maybe its possible. any thoughts

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

cwright's picture
Re: QC Auto Class Stubbing or Code Generation of QC Context

what kind of stubbing did you have in mind? from the QC graph itself (as in, rendering the composition generates the stubs), or as defined by the graph (as in, the tool would need to understand the QC graph, and generate stubs from the structure of the graph)?

If the former, I can't see it being particularly useful, and for the latter, I don't know that it would help all that much -- QC graph model isn't Turing complete, so the kinds of relations you can generate would be much more limited than what you could do in other nodular modelers.

dust's picture
Re: QC Auto Class Stubbing or Code Generation of QC Context

i figured as much, the framework being private and all. i guess i was just looking for simple core stock foundation stubs and what not. i mean things that have equivalents in cocoa, like interpolation is part of the core animation or cg so there is a obvious 1 to 1 mapping in respects to functions implementations or sub class overrides regardless of the nodes inherent 1 to many dependency or patch relation attributes like child and parent etc..

i mean you seem to leaning toward this being possible all ready which i'm entirely sure is possible using some sort of turing ocular logic or at least at binary read level or set of levels.

i suppose a instantiated nib referenced by its dictionary plist could make some extra associations or aggregate strucutres i guess but reversing isn't exactly what i had in mind.

i just thought it might be useful to have a feature like this. is there not a xcode tool or utility that does this all ready ? i mean regardless of the complicated nature of graph systems is it possible now with an xcode utility to get any kind of stubbing or generation ?

cwright's picture
Re: QC Auto Class Stubbing or Code Generation of QC Context

dust wrote:
i just thought it might be useful to have a feature like this. is there not a xcode tool or utility that does this all ready ? i mean regardless of the complicated nature of graph systems is it possible now with an xcode utility to get any kind of stubbing or generation ?

you can create "data models" in Xcode, where you define attributes and relationships of entities. I have no idea if it can turn those into stubs or boilerplate code, but I think it's used for CoreData-backed applications (so most likely SQLite databases).