Re: Using selectedMenuItemColor

2011-04-10 Thread Eric Gorr
On Apr 10, 2011, at 10:09 PM, Graham Cox wrote: > > On 11/04/2011, at 11:33 AM, Eric Gorr wrote: > >> Hummm...I can't seem to get it to do much. If I alter the code to: > > > Have you tried using NSAffineTransform to offset the coordinate system to > where you want to draw? You probably don'

Re: Using selectedMenuItemColor

2011-04-10 Thread Graham Cox
On 11/04/2011, at 11:33 AM, Eric Gorr wrote: > Hummm...I can't seem to get it to do much. If I alter the code to: Have you tried using NSAffineTransform to offset the coordinate system to where you want to draw? You probably don't need or want to mess with your view coordinates or frame, you

Re: Using selectedMenuItemColor

2011-04-10 Thread Eric Gorr
On Apr 10, 2011, at 2:13 AM, Lee Ann Rucker wrote: > Interesting - if you set the view so its Y origin is zero, it draws as > expected. Hummm...I can't seem to get it to do much. If I alter the code to: [self setFrameOrigin:NSMakePoint( 0, 0 )]; for ( x = 0; x < 10; x++ )

RE: Using selectedMenuItemColor

2011-04-09 Thread Lee Ann Rucker
Behalf Of Eric Gorr [mail...@ericgorr.net] Sent: Saturday, April 09, 2011 7:15 PM To: Cocoa Dev Subject: Using selectedMenuItemColor 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 sm

Re: Using selectedMenuItemColor

2011-04-09 Thread Graham Cox
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 w

Using selectedMenuItemColor

2011-04-09 Thread Eric Gorr
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, th