Oh, yes, it works. Thanks. But is this a new API? Because I really liked the idea that everything was based on #renderIn: so you can refer on the same way to all builders. It it going to be use also, or builders will move to #view:?
I see your point and you are perfectly right. #renderIn: is called when you call #build, to build the visualization. It often happens that the view is required _before_ you actually build it.
For example, RTCharterBuilder>>points: uses the view variable. I have the impression this is not a big deal. Having #renderIn: is not that necessary. Probably, that in the future we will need a way to define input of a builder. Something like: RTBuilder>>buildWithArguments: arguments
In that case, it would be like using a builder as a super-composite-shape. Do you my point?
Cheers, Alexandre
On 23 Sep 2014, at 14:18, Alexandre Bergel alexandre.bergel@me.com wrote:
Have you tried to set the view right after the creation of the builder by using #view: ?
Alexandre
Le 23-09-2014 à 6:48, Yuriy Tymchuk yuriy.tymchuk@me.com a écrit :
Hi, I need to use Charter Builder to build a chart in an external view. According to the builder chapter, any builder should override #renderIn:, and so it should be possible to do “builder renderIn: myView”. But RTCharterBuilder does not override this method. Can I build charts in my view in some other way?
Uko _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev