• 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 appendBezierPathWithGlyph:inFont:] and current graphics port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port


  • Subject: Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
  • From: Brock Brandenberg <email@hidden>
  • Date: Fri, 02 May 2003 11:18:45 -0500

> It is nowhere documented that -[NSBezierPath
> appendBezierPathWithGlyph:inFont:] does actually append no path to the
> receiver if the current NSGraphicsContext has no graphics port. Is it
> really the case?
>
> The only workaround I found so far is to lock the focus on a static
> NSImage (not quite efficient, I guess).

This is indeed the case. It's most likely an undocumented feature rather
than a bug since it would make sense that the method would look to the
current graphics context for a transform (ctm) to do it's work. BTW, getting
a temporary empty NSImage and locking focus on it has worked fine for me too
when the work isn't being done inside of drawRect:.

Apple should really document this since it seems to waste everyone's time
figuring it out for the first time.

Brock Brandenberg

----- industrial design @ www.bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
      • From: Marco Binder <email@hidden>
  • Prev by Date: Re: NSTextStorage and NSTextAttachment
  • Next by Date: Unaddable Window
  • Previous by thread: Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
  • Next by thread: Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
  • Index(es):
    • Date
    • Thread