• 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 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


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

  • Prev by Date: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Next by Date: Custom Background For NSTextView
  • Previous by thread: Re: NSBezierPath append CGGlyph
  • Next by thread: Re: NSBezierPath append CGGlyph
  • Index(es):
    • Date
    • Thread