• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSImageView Will Not Alias Images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView Will Not Alias Images


  • Subject: NSImageView Will Not Alias Images
  • From: Chris Tracewell <email@hidden>
  • Date: Tue, 6 Apr 2010 13:17:43 -0700

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 (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


  • Follow-Ups:
    • Re: NSImageView Will Not Alias Images
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Wondering about that iPad page curling
  • Next by Date: Re: Alternative Location of Cocoa ID3 Framework??
  • Previous by thread: Re: Trying to get data from the AB
  • Next by thread: Re: NSImageView Will Not Alias Images
  • Index(es):
    • Date
    • Thread