Using selectedMenuItemColor
Using selectedMenuItemColor
- Subject: Using selectedMenuItemColor
- From: Eric Gorr <email@hidden>
- Date: Sat, 09 Apr 2011 22:15:47 -0400
I've got a sample application at http://ericgorr.net/cocoadev/colordrawing.zip attempting demonstrate what I am trying to do.
Basically, I would like the smaller rectangles to the right of the large one to all look the same.
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.
Now, I could simply create a NSImage, fill it using selectedMenuItemColor, and then draw it where ever I want, but I was wondering if there was some other method I could employ.
Hopefully this makes sense... if not, let me know and I will try to explain further.
Thanks.
_______________________________________________
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