On 23 Sep 2014, at 20:26, Alexandre Bergel <alexandre.bergel@me.com> wrote: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,
AlexandreOn 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: ?
AlexandreLe 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
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev