On 10/04/2011, at 12:15 PM, Eric Gorr wrote:

> However, when filling a rect using selectedMenuItemColor, the way the 
> rectangle is filled depends on where in the view the rectangle is filled. I 
> would like to be able to control the way the rectangle is filled when using 
> selectedMenuItemColor and have it be independent of where in the view the 
> rectangle is filled. I thought I might be able to use setPatternPhase to have 
> this control, but it had no effect.


You could try using a NSAffineTransform to translate the origin to where you 
want to draw, then draw at 0,0. I haven't tried this to see if it affects 
-selectedMenuItemColor, but it's worth a try.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to