Re: NSBezierPath append CGGlyph
Re: NSBezierPath append CGGlyph
- Subject: Re: NSBezierPath append CGGlyph
- From: Keith Duncan <email@hidden>
- Date: Sat, 1 Sep 2007 19:37:37 +0100
Actually your cast doesn't help and is in fact wrong since it
prevents the compiler from seeing your error.
I appreciate this, it was simply a stab in the dark since I remember
reading somewhere (in Apple docs) that they are interchangeable. It
should infact read that the value is interchangeable NOT the type.
I'll file a bug when I find the page.
If you have an C array of CGGlyphs then each array slot is 2 bytes
wide and casting wont change how the memory is allocated or
populated. The appendBezierPathWithGlyphs:count:inFont: method
expects a C array of NSGlyphs (4 byte slots).
This explains the behavior I'm getting, the bezier path only contains
every second glyph!
- Keith
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden