This is a continuation of my previous issue stroking a bezier path.
In my sub-class -initWithFrame:frame I do the following:
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code here.
        frame.size.width = 200.0;
        frame.size.height = 200.0;
        frame.origin.x = 50.0;
        frame.origin.y = 50.0;

Should I be pixel aligning it? And is this the correct way?
        frame = [self convertRectToBacking: frame];
        frame = [self convertRectFromBacking: frame];

        [self setFrame:frame];
        [self setNeedsDisplay:YES];
                … ….


Thanks….

_______________________________________________

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

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

Reply via email to