Problems with NSImage?
Problems with NSImage?
- Subject: Problems with NSImage?
- From: email@hidden
- Date: Thu, 6 Oct 2005 16:11:12 -0700
I'm loading data from URLs into NSImage objects and then drawing
those onto a custom view. However, some of the images (seems to be
about 25%) show up too small. If I take the URL I'm loading the
NSImage from and type it into the browser, I see the correct size,
but NSImage shows it as an incorrect size.
For example, for this URL:
http://static.flickr.com/29/41546044_fbc8a848fb_t.jpg
If I load an NSImage like this:
NSString *url = @"http://static.flickr.com/29/41546044_fbc8a848fb_t.jpg"
NSImage *image = [[NSImage alloc] initWithData:[NSData
dataWithContentsOfURL:[NSURL urlWithString:url]]];
If I query that image, it shows the height as 40px and the width as
around 30px. However, if I type that URL into a browser, I get the
correct image back - 100px by 78px.
I've tried binding an NSImageView to a property that contains a URL
as well - and it shows the image as too small as well.
I find it hard to believe that this would be a bug in NSImageView...
but is there anything I'm doing wrong?
Thanks,
Blake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden