[Drawkit] Keeping a drawing tool selected
Graham Cox
graham.cox at bigpond.com
Fri Jul 11 07:45:01 PDT 2008
Hi Uli,
For now I've just removed this behaviour, and leave it up to the app
to control it as they wish, which is straightforward in this case.
I agree that delegation could be a good way to solve this, and
probably a number of other situations too, but in the interests of
keeping things simple I've avoided adding arbitrary delegation to
classes for sundry decision-making until I get feedback about what's
really needed. One reason for that is because of MacZoop - you may
dimly recall a class called ZModifier that was a sort of delegation
object. It almost never got used, implemented things arbitrarily and
was probably more maintenance than it was worth.
I do expect delegation to gradually evolve in a few places in DK
though, as needs are flagged up.
cheers, Graham
On 11 Jul 2008, at 3:13 am, Uli Kusterer wrote:
> On 10.07.2008, at 04:22, Graham Cox wrote:
>> Currently, if you set the "Select" tool, it turns this setting back
>> on. While that reflects a common usage it's probably not very
>> general - I'll think about how that should be resolved. Anyway you
>> might want to keep setting this flag to NO each time you set a tool
>> to work around this. You can see an example of this in the simple
>> demo.
>
>
> Sounds like a job for a delegate method -
> (BOOL)drawingTool:shouldRevertToTool: (DKTool**)ioTool or so. This
> one would also allow the delegate to specify an alternate tool to
> revert to.
>
> Cheers,
> -- Uli Kusterer
> "The Witnesses of TeachText are everywhere..."
> http://www.zathras.de
>
>
>
>
>
> _______________________________________________
> Drawkit mailing list
> Drawkit at lists.apptree.net
> http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net
More information about the Drawkit
mailing list