• 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: Using selectedMenuItemColor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Using selectedMenuItemColor (From: Eric Gorr <email@hidden>)

  • Prev by Date: Using selectedMenuItemColor
  • Next by Date: Re: Controller Selection Synchronization
  • Previous by thread: Using selectedMenuItemColor
  • Next by thread: RE: Using selectedMenuItemColor
  • Index(es):
    • Date
    • Thread