Re: Using selectedMenuItemColor
Re: Using selectedMenuItemColor
- Subject: Re: Using selectedMenuItemColor
- From: Eric Gorr <email@hidden>
- Date: Sun, 10 Apr 2011 21:33:40 -0400
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++ )
{
blockFrame.origin.x = ( x * xOffset ) + NSMinX( secondThird );
blockFrame.origin.y = ( x * yOffset ) + NSMinY( secondThird );
NSRectFill( blockFrame );
}
The smaller rectangles all come out black.
I've tried variations on this, including using setBoundsOrigin....
I know I am missing something obvious...
> BTW, you should be using [self bounds], not [self frame].
Thanks...ya, corrected that soon after I uploaded the code.
_______________________________________________
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