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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to