I am trying to get NSImageView to alias dropped images, but it refuses. Just spent an hour looking and trying several variations to no avail. Here's what I have done in a subclass of NSImageView.

-(void)drawRect:(NSRect)rect
        {       
[[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh];
        [[NSGraphicsContext currentContext] setShouldAntialias:YES];
        
        [super drawRect:rect];
        }

I have assigned the ImageView in IB my subclass and used NSLog to verify that it is drawing through the above drawRect method of my subclass - but the images (PNG screen captures) will not alias.

Any suggestions?
_______________________________________________

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