Re: NSImage rotation regression?
Re: NSImage rotation regression?
- Subject: Re: NSImage rotation regression?
- From: Marco S Hyman <email@hidden>
- Date: Tue, 22 Sep 2009 15:46:32 -0700
FYI: a while ago I asked about a possible NSImage rotation regression
and Ken responded with:
I dropped the code below in a test app, and it seemed to work fine
on 10.6
with 90 as the number of degrees.
Perhaps you could make a full test app that demonstrates the issue?
In doing that I found the problem before I even tried my rotation
code.
NSString *path = [[NSBundle mainBundle] pathForResource:@"img"
ofType:@"cr2"];
if (path) {
image = [[NSImage alloc] initWithContentsOfFile: path];
}
[imageWell setImage: image];
That code, if compiled with the 10.5 SDK, needs rotation. The same
code compiled with the 10.6 SDK is already rotated. Trying to rotate
again does the wrong thing.
Example project that shows the issue (including the image as it came
from the camera) at http://www.snafu.org/imagebug.dmg
Set the active SDK to 10.6 and compile and run to see the image
rotated (without my rotation code being called). Clean, set the
active SDK to 10.5, compile and run to see an unrotated image.
I've only run this code on 10.6 -- don't know what will happen if
run on 10.5.
I didn't see any mention of this in the documentation or release
notes. Did I miss it?
/\/\arc
_______________________________________________
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