On Oct 19, 2008, at 9:08 AM, DKJ wrote:
That's the first puzzle. Maybe if I can understand what's happening here, the other puzzles will be resolved too!

Try placing two of your views in the window with different sizes and positions. Add NSLog statements to your -drawRect: method that print the bounds and frame:

        - (void)drawRect:(NSRect)rect {
                NSLog(@"frame: %@", NSStringFromRect([self frame]));
                NSLog(@"bounds: %@", NSStringFromRect([self bounds]));

                [[NSColor redColor] set];
                [NSBezierPath strokeRect:[self bounds]];
        }

See if that helps.

--Andy

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to