Jens, Quincey,
Thank you for all the valuable info. My image dpi is indeed higher than 72.
Combining your info, I elected to use, for now:
NSImage* tempImage = [NSImage imageNamed: @"image1"];
NSImageRep *rep = [tempImage bestRepresentationForDevice: nil];
int width = (int)rep.pixelsWide;
On Jul 3, 2011, at 09:00, Benjamin Dubois wrote:
> NSString* imageName = [[NSBundle mainBundle]
> pathForResource:@"image1" ofType:@"png"];
>NSLog(@"imageName:%@",imageName);
>NSImage* tempImage = [[NSImage alloc] initWithContentsOfFile:imageName];
It's a whole l
On Jul 3, 2011, at 9:00 AM, Benjamin Dubois wrote:
> It looks like when I run the app, my bundled image is scaled down to about
> 75% of it is actual size.
The resolution of the image is probably set to greater than 72dpi. Take a look
at it in the Preview app’s Info pane. To fix this, either us
Hello, all!
Happy 4th of July weekend!
I am currently learning Cocoa/Objective C with XCode 4.0.2 and the 10.6 SDK.
I had started to learn a few Cocoa bits way back when it first showed up
with 10.0 preview (thanks to the student developer program) but ended up
spending most of my programming tim