Re: Using selectedMenuItemColor
Re: Using selectedMenuItemColor
- Subject: Re: Using selectedMenuItemColor
- From: Graham Cox <email@hidden>
- Date: Sun, 10 Apr 2011 13:42:39 +1000
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 (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