[Drawkit] Beta 4 Finally up!

James Maxwell jbmaxwell at rubato-music.com
Tue Jul 22 08:57:15 PDT 2008


Hey Graham,

The new sanity check for unit size in DKDrawableShape has broken my  
glyph-based shapes.
I'm using -adoptPath:, but of course, although adoptPath: tries to  
resize the path to unit size, it then calls setPath:, which is where  
glyphs fail. This appears to be due to the fact that - 
appendBezierPathWithGlyph:inFont: returns a path whose bounds are  
generally oddly shaped - i.e., not square - but your sanity check  
wants a square path, so even adoptPath: can't fix paths from glyphs.  
At least that's my best guess. I've hackishly overridden setPath: and  
commented out the sanity check, just to get it working for now, but do  
you have any suggestions as to how I might devise a more "sane" method  
for creating glyph-based drawable shapes? Pretty much all of my  
musical objects - notes, clefs, and so on - will be coming from music  
fonts, and need to be single objects (i.e., I tried using text but it  
was very awkward). You had suggested the idea of DKDrawableShape and  
adoptPath: a few months ago. Any other ideas? Or is it possible, and  
safe, to make the sanity check accept non-square paths, as long as  
they're equal to 1.0 in their longest dimension?

J.


On 21-Jul-08, at 10:28 PM, Graham Cox wrote:

> Hi all,
>
> After delaying for quite a while, I've released DrawKit beta 4 - as  
> usual download from:
>
> http://apptree.net/drawkitmain.htm
>
> Please read the release notes for a list of changes. In particular  
> I've made another raft of name changes - this time I hope for the  
> last time - which I know is painful but should be worthwhile in  
> terms of making several classes KVC/KVO compliant that weren't  
> before and making things fit in better with normal Cocoa naming  
> conventions.
>
> There are also new versions of the DrawDemo and DK Mini Demo apps  
> built around beta 4.
>
> Let me know straight away if there are any problems.
>
>
> cheers, Graham
> _______________________________________________
> Drawkit mailing list
> Drawkit at lists.apptree.net
> http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net



More information about the Drawkit mailing list