Avoiding cyclic header imports

2012-07-10 Thread Erik Stainsby
I have two classes, and a model object - RSPlugin, RSExpression, and RSRule - which share the same data model. I have thought to have the classes provide a method which can be used to initialize the RSRule object so: RSRule * rule = [[RSRule alloc] init]; [rule loadFromPlugin: currentPlugin];

Re: Avoiding cyclic header imports

2012-07-10 Thread Jens Alfke
On Jul 10, 2012, at 5:01 PM, Erik Stainsby erik.stain...@roaringsky.ca wrote: where -[RSRule loadFromPlugin:] copies the values to the rule. This requires however that RSRule #imports the RSPlugin header. I also would like to maintain symmetry by having RSPlugin import the values of