Re: NSBezierPath append CGGlyph
Re: NSBezierPath append CGGlyph
- Subject: Re: NSBezierPath append CGGlyph
- From: Keith Duncan <email@hidden>
- Date: Sat, 1 Sep 2007 16:49:11 +0100
NSGlyph is not an object, it's an int. Try casting them to a
NSGlyph (no asterisk)
Actually NSGlyph is an unsigned integer, whereas CGGlyph is an
unsigned short. However I have a buffer (C style array) of CGGlyphs.
The method I was using was -[NSBezierPath's
appendBezierPathWithGlyphs:count:inFont:] which expects a buffer of
NSGlyphs. So you see my cast was correct it just seems that there is
an index mismatch between CGGlyph and NSGlyph such that they aren't
interchangeable.
- 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