Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
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.