• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBezierPath append CGGlyph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSBezierPath append CGGlyph
      • From: Shawn Erickson <email@hidden>
    • Re: NSBezierPath append CGGlyph
      • From: Scott Thompson <email@hidden>
References: 
 >NSBezierPath append CGGlyph (From: Keith Duncan <email@hidden>)
 >Re: NSBezierPath append CGGlyph (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: file scan results in EX_BAD_ACCESS
  • Next by Date: best way to "reset" values
  • Previous by thread: Re: NSBezierPath append CGGlyph
  • Next by thread: Re: NSBezierPath append CGGlyph
  • Index(es):
    • Date
    • Thread